Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Dec 2009 19:42:43 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r200151 - stable/8/sys/netinet6
Message-ID:  <200912051942.nB5JghY4097713@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sat Dec  5 19:42:42 2009
New Revision: 200151
URL: http://svn.freebsd.org/changeset/base/200151

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

Modified:
  stable/8/sys/netinet6/icmp6.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/netinet6/icmp6.c
==============================================================================
--- stable/8/sys/netinet6/icmp6.c	Sat Dec  5 19:31:38 2009	(r200150)
+++ stable/8/sys/netinet6/icmp6.c	Sat Dec  5 19:42:42 2009	(r200151)
@@ -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?200912051942.nB5JghY4097713>