Fix segfault on 'ipsec stroke up ]' command

This commit is contained in:
Thomas Egerer
2010-07-29 14:03:11 +02:00
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;