Page MenuHomeFreeBSD

D1539.diff
No OneTemporary

D1539.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
Mon, Apr 20, 4:16 AM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31819580
Default Alt Text
D1539.diff (400 B)

Event Timeline