Fix inverted logic bug that David Wolfskill found (thanks David!)

MFC after:	3 Weeks
This commit is contained in:
Randall Stewart 2015-07-22 09:29:50 +00:00
parent c48c590f63
commit f260c1b939
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285788

View File

@ -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);