summaryrefslogtreecommitdiff
path: root/sysutils/cfengine/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/cfengine/patches/patch-ad')
-rw-r--r--sysutils/cfengine/patches/patch-ad6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/cfengine/patches/patch-ad b/sysutils/cfengine/patches/patch-ad
index 6ece6493982..f62af4d4a78 100644
--- a/sysutils/cfengine/patches/patch-ad
+++ b/sysutils/cfengine/patches/patch-ad
@@ -1,4 +1,4 @@
-$NetBSD: patch-ad,v 1.2 1999/11/09 17:22:16 abs Exp $
+$NetBSD: patch-ad,v 1.3 1999/11/09 19:29:57 abs Exp $
--- src/misc.c.orig Tue Sep 14 09:46:53 1999
+++ src/misc.c Tue Nov 9 16:27:25 1999
@@ -652,3 +652,41 @@
@@ -28,8 +28,8 @@ $NetBSD: patch-ad,v 1.2 1999/11/09 17:22:16 abs Exp $
+ */
+
+ /* This is also a convenient method to ensure valid dotted quad */
-+if ( (nm.s_addr = inet_addr(netmask)) != INADDR_NONE &&
-+ (ip.s_addr = inet_addr(VIPADDRESS)) != INADDR_NONE )
++if ( (nm.s_addr = inet_addr(netmask)) != -1 &&
++ (ip.s_addr = inet_addr(VIPADDRESS)) != -1 )
+ {
+ ip.s_addr &= nm.s_addr; /* Will not work with IPv6 */
+ strcpy(ipbuf,inet_ntoa(ip));