summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_socket.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-27 00:57:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-27 00:57:29 +0000
commit8ef6d5decca9f0114ccf9558973db4284f9c70aa (patch)
treee71ca466ff921dccb331e86bb1579d5fff9e38f3 /sys/compat/linux/linux_socket.c
parent578db6e5580d2214d6b251816a99dcc18fb8d6a4 (diff)
oh, connect() semantics are EVEN WORSE
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
-rw-r--r--sys/compat/linux/linux_socket.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 5ad1cfa5506..88d35dc52e9 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_socket.c,v 1.5 1997/11/26 08:51:08 deraadt Exp $ */
+/* $OpenBSD: linux_socket.c,v 1.6 1997/11/27 00:57:28 deraadt Exp $ */
/* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */
/*
@@ -224,9 +224,7 @@ linux_connect(p, uap, retval)
return error;
if ((error = copyin(status, &stat, sizeof stat)))
return error;
- if (stat)
- return stat;
- return EISCONN;
+ return stat;
}
return error;
}