summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/uipc_socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index cb02026..c66db4c 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -2260,9 +2260,9 @@ socheckuid(struct socket *so, uid_t uid)
if (so == NULL)
return (EPERM);
- if (so->so_cred->cr_uid == uid)
- return (0);
- return (EPERM);
+ if (so->so_cred->cr_uid != uid)
+ return (EPERM);
+ return (0);
}
static int
OpenPOWER on IntegriCloud