From: Andre Noll Date: Fri, 23 Nov 2007 09:42:09 +0000 (+0100) Subject: net.c: Return proper error value in recv_bin_buffer(). X-Git-Tag: v0.3.0~103^2~5 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=d81f6efa05b305c9a8655124b001ea71e1c86679;p=paraslash.git net.c: Return proper error value in recv_bin_buffer(). --- diff --git a/net.c b/net.c index f896f564..c7bb8b4b 100644 --- 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; }