X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fldp.c;h=0dbc6a51efcc5fbab3543383bc5e7f4d0f399e74;hb=2a6642e95dc18d7c56f87b74a70658b8312b8c08;hp=d6e81d6b3b909700a6db42675aa1ef6b9ff34c19;hpb=eda1b8c32f9857bb749835b0189af002b224927d;p=vpp.git diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c index d6e81d6b3b9..0dbc6a51efc 100644 --- a/src/vcl/ldp.c +++ b/src/vcl/ldp.c @@ -1502,7 +1502,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 {