From d81f6efa05b305c9a8655124b001ea71e1c86679 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 23 Nov 2007 10:42:09 +0100 Subject: [PATCH] net.c: Return proper error value in recv_bin_buffer(). --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5