projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net.c: Return proper error value in recv_bin_buffer().
[paraslash.git]
/
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;
}