diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-08-21 17:38:48 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-08-21 17:38:48 +0000 |
| commit | 5a0192650e16a893fab7c7bb2e37fd7caa51d366 (patch) | |
| tree | c6363f567c44d91f1f8a1b03278cb8f68051ce8c | |
| parent | e6ccd70936186495ada83c2ee0e4cf74efa19811 (diff) | |
Notes
| -rw-r--r-- | sys/netinet6/in6_pcb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 7639919e8a84d..9bcbeb82d3ce4 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -705,9 +705,11 @@ in6_pcbnotify(pcbinfo, dst, fport_arg, src, lport_arg, cmd, cmdarg, notify) } do_notify: - if (notify) - (*notify)(inp, errno); - INP_UNLOCK(inp); + if (notify) { + if ((*notify)(inp, errno)) + INP_UNLOCK(inp); + } else + INP_UNLOCK(inp); } INP_INFO_WUNLOCK(pcbinfo); splx(s); |
