summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/parse.y
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2007-05-10 06:10:05 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2007-05-10 06:10:05 +0000
commit93f7b9832a7ee1e0ff5edbc133afdfdd3e38ad3d (patch)
treeb0c366e399c465af27b1326c35a5107361ce2968 /sbin/ipsecctl/parse.y
parent0dccde5a0032e64b247846bdf4b654c0facdee23 (diff)
Do not crash when lists include the "any" keyword. Reported by
<ralf.horstmann at gmx.net>, thanks! Slightly different fix. Also add a regression test. ok mpf@
Diffstat (limited to 'sbin/ipsecctl/parse.y')
-rw-r--r--sbin/ipsecctl/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index be9f4bcade3..48344759d39 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.122 2007/03/16 20:51:01 markus Exp $ */
+/* $OpenBSD: parse.y,v 1.123 2007/05/10 06:10:04 hshoexer Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -495,6 +495,7 @@ host : STRING {
err(1, "host: calloc");
ipa->af = AF_UNSPEC;
ipa->netaddress = 1;
+ ipa->tail = ipa;
$$ = ipa;
}
| '{' host_list '}' { $$ = $2; }