diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-01 18:47:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-01 18:47:46 +0000 |
commit | 2b28084c574e59d7204f03cc3b5740de0dbb0be4 (patch) | |
tree | 14faa980b7844dc529ccb7758d38f0102109ea74 /sys/kern | |
parent | 7b4d8671e2e9345bb4cf2ae8dff594c259ceca70 (diff) |
SO_PEERCRED should return ENOTCONN when the sockets are not connected
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index c4d573bbfc2..25ee1ea1495 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket.c,v 1.80 2010/06/30 19:57:05 deraadt Exp $ */ +/* $OpenBSD: uipc_socket.c,v 1.81 2010/07/01 18:47:45 deraadt Exp $ */ /* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */ /* @@ -1205,7 +1205,7 @@ sogetopt(struct socket *so, int level, int optname, struct mbuf **mp) mtod(m, caddr_t), (unsigned)m->m_len); } else - return (EINVAL); + return (ENOTCONN); } else return (EOPNOTSUPP); break; |