diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-05-28 21:24:10 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-05-28 21:24:10 +0000 |
commit | 5fcbece4c3844d1a7eaa956a07fead6391d9c0c5 (patch) | |
tree | 4e616c2d7a5881e395aa900a5a73428df6a316b3 | |
parent | b7ad0a3b85b43a1f78fde5b0188843c6bdba2a65 (diff) |
when parsing host specifications, initialize host address queue pointers, not
used yet.
-rw-r--r-- | sbin/ipsecctl/parse.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y index 03b4cb3f54b..eb38e049218 100644 --- a/sbin/ipsecctl/parse.y +++ b/sbin/ipsecctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.69 2006/05/28 21:10:10 hshoexer Exp $ */ +/* $OpenBSD: parse.y,v 1.70 2006/05/28 21:24:09 hshoexer Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1269,6 +1269,8 @@ host_v4(const char *s, int mask) if (ipa->name == NULL) err(1, "host_v4: strdup"); ipa->af = AF_INET; + ipa->next = NULL; + ipa->tail = ipa; set_ipmask(ipa, bits); if (bits != (ipa->af == AF_INET ? 32 : 128)) @@ -1305,6 +1307,8 @@ host_dns(const char *s, int v4mask, int v6mask) if (ipa->name == NULL) err(1, "host_dns: strdup"); ipa->af = AF_INET; + ipa->next = NULL; + ipa->tail = ipa; set_ipmask(ipa, bits); if (bits != (ipa->af == AF_INET ? 32 : 128)) |