commit | 2a6642e95dc18d7c56f87b74a70658b8312b8c08 | [log] [tgz] |
---|---|---|
author | Florin Coras <fcoras@cisco.com> | Tue Mar 24 15:24:29 2020 +0000 |
committer | Dave Barach <openvpp@barachs.net> | Tue Mar 24 18:32:26 2020 +0000 |
tree | 232ad632c544a310df28fa8be8c093582fe8233a | |
parent | eda1b8c32f9857bb749835b0189af002b224927d [diff] |
vcl: fix ldp recv return on error Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I0875705d3a0c95f2781b0595ef27a30486438aae
diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c index d6e81d6..0dbc6a5 100644 --- a/src/vcl/ldp.c +++ b/src/vcl/ldp.c
@@ -1502,7 +1502,10 @@ { size = vls_recvfrom (vlsh, buf, n, flags, NULL); if (size < 0) - errno = -size; + { + errno = -size; + size = -1; + } } else {