Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2015 09:29:51 +0000 (UTC)
From:      Randall Stewart <rrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285788 - head/sys/netinet6
Message-ID:  <201507220929.t6M9TpLW054851@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507220929.t6M9TpLW054851>