summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2015-07-22 09:29:50 +0000
committerrrs <rrs@FreeBSD.org>2015-07-22 09:29:50 +0000
commite8d0638773f532f8f1fb197353ce8cc58183de85 (patch)
treecbb2338604c51e8a4d912bc9ff361e8a46ec732d
parent5ae558c70ac630b99bff7a2284f59d062c6d7d62 (diff)
downloadFreeBSD-src-e8d0638773f532f8f1fb197353ce8cc58183de85.zip
FreeBSD-src-e8d0638773f532f8f1fb197353ce8cc58183de85.tar.gz
Fix inverted logic bug that David Wolfskill found (thanks David!)
MFC after: 3 Weeks
-rw-r--r--sys/netinet6/udp6_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c
index 15e5034..eb97c1e 100644
--- a/sys/netinet6/udp6_usrreq.c
+++ b/sys/netinet6/udp6_usrreq.c
@@ -403,7 +403,7 @@ udp6_input(struct mbuf **mp, int *offp, int proto)
INP_RLOCK(last);
INP_INFO_RUNLOCK(pcbinfo);
UDP_PROBE(receive, NULL, last, ip6, last, uh);
- if (udp6_append(last, m, off, &fromsa))
+ if (udp6_append(last, m, off, &fromsa) == 0)
INP_RUNLOCK(last);
inp_lost:
return (IPPROTO_DONE);
OpenPOWER on IntegriCloud