diff options
Diffstat (limited to 'sys/netgraph/ng_tee.c')
-rw-r--r-- | sys/netgraph/ng_tee.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netgraph/ng_tee.c b/sys/netgraph/ng_tee.c index e95c41f..7b47617 100644 --- a/sys/netgraph/ng_tee.c +++ b/sys/netgraph/ng_tee.c @@ -309,8 +309,12 @@ ngt_rcvdata(hook_p hook, item_p item) } else if (hinfo == &sc->left2right) { dup = NULL; dest = &sc->left; - } else + } else { panic("%s: no hook!", __FUNCTION__); +#ifdef RESTARTABLE_PANICS + return(EINVAL); +#endif + } /* Update stats on incoming hook */ hinfo->stats.inOctets += m->m_pkthdr.len; |