Page MenuHomeFreeBSD

D1539.id3430.diff
No OneTemporary

D1539.id3430.diff

Index: head/sbin/ipfw/nat.c
===================================================================
--- head/sbin/ipfw/nat.c
+++ head/sbin/ipfw/nat.c
@@ -163,9 +163,9 @@
}
}
if (sin == NULL)
- errx(1, "%s: cannot get interface address", ifn);
-
- n->ip = sin->sin_addr;
+ n->ip.s_addr = htonl(INADDR_ANY);
+ else
+ n->ip = sin->sin_addr;
strncpy(n->if_name, ifn, IF_NAMESIZE);
free(buf);

File Metadata

Mime Type
text/plain
Expires
Sat, Sep 12, 9:25 PM (13 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38819860
Default Alt Text
D1539.id3430.diff (400 B)

Event Timeline