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:
Bjoern A. Zeeb 2009-10-14 12:01:11 +00:00
parent 382e8b5ad9
commit 14c129fc3e

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