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:
parent
382e8b5ad9
commit
14c129fc3e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user