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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to