diff options
author | deischen <deischen@FreeBSD.org> | 2011-02-13 00:14:13 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2011-02-13 00:14:13 +0000 |
commit | cc0a83ec21a32f6d6d309198429b6e90ceebd223 (patch) | |
tree | 5045d42718d9a42a8fde924ecbfccbd498bbefa5 /sys/netinet | |
parent | 2fb060368627dc29279d5ac969e6c3eb6b0e7ea3 (diff) | |
download | FreeBSD-src-cc0a83ec21a32f6d6d309198429b6e90ceebd223.zip FreeBSD-src-cc0a83ec21a32f6d6d309198429b6e90ceebd223.tar.gz |
Allow the SO_SETFIB socket option to select the default (0)
routing table.
Reviewed by: julian
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 589585c..7c479d3 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -486,6 +486,10 @@ udp_input(struct mbuf *m, int off) INP_RUNLOCK(inp); continue; } + if (imo == NULL) { + INP_RUNLOCK(inp); + continue; + } bzero(&group, sizeof(struct sockaddr_in)); group.sin_len = sizeof(struct sockaddr_in); group.sin_family = AF_INET; |