diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netnatm/natm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netnatm/natm.c b/sys/netnatm/natm.c index e9bb584..2a5d547 100644 --- a/sys/netnatm/natm.c +++ b/sys/netnatm/natm.c @@ -381,9 +381,12 @@ natm_usr_control(struct socket *so, u_long cmd, caddr_t arg, else npcb->npcb_flags &= ~(NPCB_RAW); } + } else { + splx(s); + if (ifp == NULL || ifp->if_ioctl == NULL) + return (EOPNOTSUPP); + return ((*ifp->if_ioctl)(ifp, cmd, arg)); } - else - error = EOPNOTSUPP; out: splx(s); |