summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-07-27 12:34:47 +0000
committerderaadt <deraadt@openbsd.org>1996-07-27 12:34:47 +0000
commited77d680d7d51de5772d94509ec3ef3514bbc3f6 (patch)
treeb6b85508ec254fbd6842c3dbf61ed0986616b70f
parenttypo (diff)
downloadwireguard-openbsd-ed77d680d7d51de5772d94509ec3ef3514bbc3f6.tar.xz
wireguard-openbsd-ed77d680d7d51de5772d94509ec3ef3514bbc3f6.zip
wrap local change in SS_CONNECTOUT
-rw-r--r--libexec/identd/openbsd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/identd/openbsd.c b/libexec/identd/openbsd.c
index e68fdc8e2c5..61316f45010 100644
--- a/libexec/identd/openbsd.c
+++ b/libexec/identd/openbsd.c
@@ -1,5 +1,5 @@
/*
-** $Id: openbsd.c,v 1.3 1996/07/25 09:50:04 deraadt Exp $
+** $Id: openbsd.c,v 1.4 1996/07/27 12:34:47 deraadt Exp $
**
** openbsd.c Low level kernel access functions for OpenBSD
**
@@ -219,11 +219,13 @@ int k_getuid(faddr, fport, laddr, lport, uid)
if (!sockp)
return -1;
+#ifdef SS_CONNECTOUT
if (!getbuf(sockp, &sock, sizeof sock, "socket"))
return -1;
if ((sock.so_state & SS_CONNECTOUT) == 0)
return -1;
+#endif
/*
** Locate the file descriptor that has the socket in question