diff options
| author | 1997-11-27 00:57:28 +0000 | |
|---|---|---|
| committer | 1997-11-27 00:57:28 +0000 | |
| commit | 9a476b00aa65431aee67abc54b697f7d8a3025d8 (patch) | |
| tree | 1fb2a18a748240c976c034e87f55a9a40aba2c7a /sys/compat/linux/linux_socket.c | |
| parent | Add a CCDF_OLD flag used to get the old I/O policy (diff) | |
| download | wireguard-openbsd-9a476b00aa65431aee67abc54b697f7d8a3025d8.tar.xz wireguard-openbsd-9a476b00aa65431aee67abc54b697f7d8a3025d8.zip | |
oh, connect() semantics are EVEN WORSE
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
| -rw-r--r-- | sys/compat/linux/linux_socket.c | 6 |
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; } |
