Skip to content

Commit

Permalink
5200 ipf_stack_destroy error messages when halting zones
Browse files Browse the repository at this point in the history
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Darren Reed <darrenr@fastmail.net>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information
jjelinek authored and rmustacc committed Dec 11, 2014
1 parent 2f443e2 commit c679876
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions usr/src/uts/common/inet/ipf/ip_fil_solaris.c
Expand Up @@ -143,9 +143,10 @@ ipf_stack_t *ifs;
do { \
if (ifs->_f != NULL) { \
if (ifs->_b) { \
ifs->_b = (net_hook_unregister(ifs->_f, \
_e, ifs->_h) != 0); \
if (!ifs->_b) { \
int tmp = net_hook_unregister(ifs->_f, \
_e, ifs->_h); \
ifs->_b = (tmp != 0 && tmp != ENXIO); \
if (!ifs->_b && ifs->_h != NULL) { \
hook_free(ifs->_h); \
ifs->_h = NULL; \
} \
Expand Down

0 comments on commit c679876

Please sign in to comment.