svn commit: r285788 - head/sys/netinet6
Randall Stewart
rrs at FreeBSD.org
Wed Jul 22 09:29:52 UTC 2015
Author: rrs
Date: Wed Jul 22 09:29:50 2015
New Revision: 285788
URL: https://svnweb.freebsd.org/changeset/base/285788
Log:
Fix inverted logic bug that David Wolfskill found (thanks David!)
MFC after: 3 Weeks
Modified:
head/sys/netinet6/udp6_usrreq.c
Modified: head/sys/netinet6/udp6_usrreq.c
==============================================================================
--- head/sys/netinet6/udp6_usrreq.c Wed Jul 22 09:12:40 2015 (r285787)
+++ head/sys/netinet6/udp6_usrreq.c Wed Jul 22 09:29:50 2015 (r285788)
@@ -403,7 +403,7 @@ udp6_input(struct mbuf **mp, int *offp,
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);
More information about the svn-src-all
mailing list