]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 f896f564308213407fc8048512b1a53a56108fe1..c7bb8b4b71293ee89964b55175c2170fb10c3e31 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;
 }