summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-27 12:34:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-27 12:34:48 +0000
commitba5ff4ce6f3af1d5219022a9a2323a257ca09461 (patch)
treee057beaf138c74026ee8db3449323441ecbd7bd4 /libexec
parente53ce699d09ed56598194b564ea85a0b219ef344 (diff)
wrap local change in SS_CONNECTOUT
Diffstat (limited to 'libexec')
-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