vcl: fix ldp recv return on error
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I0875705d3a0c95f2781b0595ef27a30486438aae (cherry picked from commit 2a6642e95dc18d7c56f87b74a70658b8312b8c08)
This commit is contained in:
parent
a086cb8674
commit
8d3ba7eab4
@ -1501,7 +1501,10 @@ recv (int fd, void *buf, size_t n, int flags)
|
||||
{
|
||||
size = vls_recvfrom (vlsh, buf, n, flags, NULL);
|
||||
if (size < 0)
|
||||
errno = -size;
|
||||
{
|
||||
errno = -size;
|
||||
size = -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user