From 68a836e35fb625b1eefb584fbc57d6c8ab06a658 Mon Sep 17 00:00:00 2001 From: Andre Date: Sat, 15 Apr 2006 18:38:59 +0200 Subject: [PATCH] recv_cred_buffer typo: Return proper error number --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index 66d19fd4..599930aa 100644 --- a/net.c +++ b/net.c @@ -415,7 +415,7 @@ int recv_cred_buffer(int fd, char *buf, size_t size, struct ucred *cred) msg.msg_controllen = sizeof(control); if (recvmsg(fd, &msg, 0) < 0) return -E_RECVMSG; - result = -SCM_CREDENTIALS; + result = -E_SCM_CREDENTIALS; cmsg = CMSG_FIRSTHDR(&msg); while (cmsg) { if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type -- 2.39.5