diff options
Diffstat (limited to 'sbin/ipsecctl/parse.y')
-rw-r--r-- | sbin/ipsecctl/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y index bc2df9d18ee..39cbb5d3fc4 100644 --- a/sbin/ipsecctl/parse.y +++ b/sbin/ipsecctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.139 2008/10/17 14:33:15 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.140 2008/11/14 23:16:37 hshoexer Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1576,7 +1576,7 @@ host_v4(const char *s, int mask) ipa->tail = ipa; set_ipmask(ipa, bits); - if (bits != (ipa->af == AF_INET ? 32 : 128)) + if (strrchr(s, '/') != NULL) ipa->netaddress = 1; return (ipa); |