diff options
author | bz <bz@FreeBSD.org> | 2009-10-14 12:01:11 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-10-14 12:01:11 +0000 |
commit | d7403abaf51df70a9bae3f78e4b3f2b7a6261a6e (patch) | |
tree | e352efbd191d12a8c4cbbe2aafd009050cf5bf6c /sys/netinet6 | |
parent | b0448eafb08d8c4bc9a5c8c4ec44bf251750a21e (diff) | |
download | FreeBSD-src-d7403abaf51df70a9bae3f78e4b3f2b7a6261a6e.zip FreeBSD-src-d7403abaf51df70a9bae3f78e4b3f2b7a6261a6e.tar.gz |
Explicitly compare to a return code.
Discussed with: philip (after we both misread the logic there the 1st time)
MFC after: 6 weeks
Diffstat (limited to 'sys/netinet6')
-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); } |