diff options
author | bz <bz@FreeBSD.org> | 2009-12-05 19:42:42 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-12-05 19:42:42 +0000 |
commit | 6d2d385ed9ed96d34d972929a6ac74da4dc69def (patch) | |
tree | b8229608bde013b06a7c7a6f63165d23712f4e91 /sys/netinet6/icmp6.c | |
parent | 533f1fdf8235e2ac97b15d592b81d53bce440d97 (diff) | |
download | FreeBSD-src-6d2d385ed9ed96d34d972929a6ac74da4dc69def.zip FreeBSD-src-6d2d385ed9ed96d34d972929a6ac74da4dc69def.tar.gz |
MFC r198076:
Explicitly compare to a return code.
Discussed with: philip (after we both misread the logic there the 1st time)
Diffstat (limited to 'sys/netinet6/icmp6.c')
-rw-r--r-- | sys/netinet6/icmp6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 04810c3..ae52f11 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -870,7 +870,7 @@ icmp6_input(struct mbuf **mp, int *offp, int proto) 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); } |