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:
Florin Coras 2020-03-24 15:24:29 +00:00 committed by Andrew Yourtchenko
parent a086cb8674
commit 8d3ba7eab4

View File

@ -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
{