recv_cred_buffer typo: Return proper error number
authorAndre <maan@p133.(none)>
Sat, 15 Apr 2006 16:38:59 +0000 (18:38 +0200)
committerAndre <maan@p133.(none)>
Sat, 15 Apr 2006 16:38:59 +0000 (18:38 +0200)
net.c

diff --git a/net.c b/net.c
index 66d19fd..599930a 100644 (file)
--- 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