MFC r198076:

Explicitly compare to a return code.

  Discussed with: philip (after we both misread the logic there the 1st time)
This commit is contained in:
Bjoern A. Zeeb 2009-12-05 19:42:42 +00:00
parent 3b558c96ce
commit 4fe9cf96e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=200151

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