svn commit: r200151 - stable/8/sys/netinet6

Bjoern A. Zeeb bz at FreeBSD.org
Sat Dec 5 19:42:44 UTC 2009


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


More information about the svn-src-all mailing list