diff options
| author | Randall Stewart <rrs@FreeBSD.org> | 2011-01-19 19:07:16 +0000 |
|---|---|---|
| committer | Randall Stewart <rrs@FreeBSD.org> | 2011-01-19 19:07:16 +0000 |
| commit | a38b1c8c5e4ba2aec774ecf4286d2328efec7b84 (patch) | |
| tree | e86d249b139eb9c508133c0cb95a38bf8dab18bc /sys/netinet/udp_usrreq.c | |
| parent | fbfbce8ae9a979b8db91e6180c13b56b31d260e0 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 3bfe788a2887..c9b4f3fc74e6 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -479,11 +479,13 @@ udp_input(struct mbuf *m, int off) * and source-specific multicast. [RFC3678] */ imo = inp->inp_moptions; - if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) && - imo != NULL) { + if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { struct sockaddr_in group; int blocked; - + 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; |
