diff options
Diffstat (limited to 'comms/ifcico-cm/patches/patch-aj')
-rw-r--r-- | comms/ifcico-cm/patches/patch-aj | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/comms/ifcico-cm/patches/patch-aj b/comms/ifcico-cm/patches/patch-aj index 03de87b2b28..2e29994b194 100644 --- a/comms/ifcico-cm/patches/patch-aj +++ b/comms/ifcico-cm/patches/patch-aj @@ -1,13 +1,21 @@ -$NetBSD: patch-aj,v 1.2 2001/02/21 18:50:37 tv Exp $ +$NetBSD: patch-aj,v 1.3 2001/03/09 12:08:25 dmcmahill Exp $ ---- ifcico/mxlookup.c.orig Wed Feb 21 10:56:21 2001 -+++ ifcico/mxlookup.c Wed Feb 21 11:00:09 2001 -@@ -226,7 +226,7 @@ - char *cp, *name; +--- ifcico/mxlookup.c.orig Sat Jul 13 17:17:12 1996 ++++ ifcico/mxlookup.c Fri Mar 9 07:01:38 2001 +@@ -170,5 +170,8 @@ + } + else { +- hp = (int)gethostbyaddr ((char*)&addr, 4, AF_INET); ++ if ( gethostbyaddr ((char*)&addr, 4, AF_INET) == NULL ) ++ hp = 0; ++ else ++ hp = 1; + break; + } +@@ -227,5 +230,5 @@ querybuf *msg; { - int n = dn_expand (msg, msg + 512, cp, name, MAXDNAME - 2); + int n = dn_expand ((char *)msg, ((char *)msg) + 512, cp, name, MAXDNAME - 2); if (n < 0) return NULL; - |