svn commit: r198076 - head/sys/netinet6

Bjoern A. Zeeb bz at FreeBSD.org
Wed Oct 14 12:01:11 UTC 2009


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


More information about the svn-src-all mailing list