net.c: Return proper error value in recv_bin_buffer().
authorAndre Noll <maan@systemlinux.org>
Fri, 23 Nov 2007 09:42:09 +0000 (10:42 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 23 Nov 2007 09:42:09 +0000 (10:42 +0100)
net.c

diff --git a/net.c b/net.c
index f896f56..c7bb8b4 100644 (file)
--- a/net.c
+++ b/net.c
@@ -232,7 +232,7 @@ __must_check int recv_bin_buffer(int fd, char *buf, size_t size)
        } else
                n = recv(fd, buf, size, 0);
        if (n == -1)
-               n = -E_RECV;
+               return -ERRNO_TO_PARA_ERROR(errno);
        return n;
 }