summaryrefslogtreecommitdiff
path: root/sys/netipx
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-01-15 19:05:31 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-01-15 19:05:31 +0000
commit0f1ab5ea888840717291894a1af40259cd57b831 (patch)
tree9a5bb696fc455614c43b5f790085ca6712510ca4 /sys/netipx
parentd753b63d01e92215b0f8318fc076ee144f60564c (diff)
PRU_DETACH does not return ENOTCONN. If ipxp is NULL, EINVAL will be
returned way above.
Diffstat (limited to 'sys/netipx')
-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