summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2011-02-13 00:14:13 +0000
committerdeischen <deischen@FreeBSD.org>2011-02-13 00:14:13 +0000
commitcc0a83ec21a32f6d6d309198429b6e90ceebd223 (patch)
tree5045d42718d9a42a8fde924ecbfccbd498bbefa5 /sys/netinet/udp_usrreq.c
parent2fb060368627dc29279d5ac969e6c3eb6b0e7ea3 (diff)
downloadFreeBSD-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/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c4
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;
OpenPOWER on IntegriCloud