Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2009 12:01:11 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r198076 - head/sys/netinet6
Message-ID:  <200910141201.n9EC1BTx035783@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Oct 14 12:01:11 2009
New Revision: 198076
URL: http://svn.freebsd.org/changeset/base/198076

Log:
  Explicitly compare to a return code.
  
  Discussed with:	philip (after we both misread the logic there the 1st time)
  MFC after:	6 weeks

Modified:
  head/sys/netinet6/icmp6.c

Modified: head/sys/netinet6/icmp6.c
==============================================================================
--- head/sys/netinet6/icmp6.c	Wed Oct 14 11:55:55 2009	(r198075)
+++ head/sys/netinet6/icmp6.c	Wed Oct 14 12:01:11 2009	(r198076)
@@ -870,7 +870,7 @@ icmp6_input(struct mbuf **mp, int *offp,
 			break;
 		}
 	deliver:
-		if (icmp6_notify_error(&m, off, icmp6len, code)) {
+		if (icmp6_notify_error(&m, off, icmp6len, code) != 0) {
 			/* In this case, m should've been freed. */
 			return (IPPROTO_DONE);
 		}



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