summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2000-01-15 19:05:30 +0000
committerfgsch <fgsch@openbsd.org>2000-01-15 19:05:30 +0000
commit90bfc62fd94baea136d86f5ecce2cd75f686b93c (patch)
treef7afd6ebcc859a967ef30f78890b1bd93f0a42d7
parentSome KNF. (diff)
downloadwireguard-openbsd-90bfc62fd94baea136d86f5ecce2cd75f686b93c.tar.xz
wireguard-openbsd-90bfc62fd94baea136d86f5ecce2cd75f686b93c.zip
PRU_DETACH does not return ENOTCONN. If ipxp is NULL, EINVAL will be
returned way above.
-rw-r--r--sys/netipx/spx_usrreq.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c
index 060b90d2ec8..167eb0f77f6 100644
--- a/sys/netipx/spx_usrreq.c
+++ b/sys/netipx/spx_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spx_usrreq.c,v 1.11 2000/01/15 09:23:14 fgsch Exp $ */
+/* $OpenBSD: spx_usrreq.c,v 1.12 2000/01/15 19:05:30 fgsch Exp $ */
/*-
*
@@ -1337,10 +1337,6 @@ spx_usrreq(so, req, m, nam, controlp)
break;
case PRU_DETACH:
- if (ipxp == NULL) {
- error = ENOTCONN;
- break;
- }
if (cb->s_state > TCPS_LISTEN)
cb = spx_disconnect(cb);
else