diff options
-rw-r--r-- | src/vcl/ldp.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |