freebsd-ports/net-mgmt/arpwatch/files/patch-al
Kirill Ponomarev 0e20a6bc8b - Fix DNS resolver bug
PR:		ports/65508
Submitted by:	Matthew George <mdg@secureworks.net>
2004-04-14 08:36:27 +00:00

20 lines
566 B
Text

--- db.c.orig Sat Sep 30 19:39:58 2000
+++ db.c Tue Apr 13 17:42:20 2004
@@ -283,7 +283,7 @@
BCOPY(e, ep->e, 6);
if (h == NULL && !initializing)
h = getsname(a);
- if (h != NULL && !isdigit((int)*h))
+ if (h != NULL)
strcpy(ep->h, h);
ep->t = t;
return (ep);
@@ -301,7 +301,7 @@
return;
ep = ap->elist[0];
h = getsname(ap->a);
- if (!isdigit((int)*h) && strcmp(h, ep->h) != 0) {
+ if (h != NULL && strcmp(h, ep->h) != 0) {
syslog(LOG_INFO, "hostname changed %s %s %s -> %s",
intoa(ap->a), e2str(ep->e), ep->h, h);
strcpy(ep->h, h);