Explicitly compare to a return code.

Discussed with:	philip (after we both misread the logic there the 1st time)
MFC after:	6 weeks
This commit is contained in:
bz 2009-10-14 12:01:11 +00:00
parent b0448eafb0
commit d7403abaf5

View File

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