Fix segfault on 'ipsec stroke up ]' command
This commit is contained in:
committed by
Martin Willi
parent
8f50d06c35
commit
5d2e159b41
@@ -186,6 +186,11 @@ static void terminate(private_stroke_control_t *this, stroke_msg_t *msg, FILE *o
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!pos)
|
||||
{
|
||||
DBG1(DBG_CFG, "error parsing string");
|
||||
return;
|
||||
}
|
||||
if (*(pos + 1) == '*')
|
||||
{ /* is name[*] */
|
||||
all = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user