aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorqchang <qing.chang1@huawei.com>2018-05-30 11:44:18 -0700
committerDave Wallace <dwallacelf@gmail.com>2018-05-31 13:27:15 +0000
commitaa8f63ca4bd73dbb007e8828ed1967f90517aa72 (patch)
treeb0e88c93eb5cb38b4c07c77add124cf337daa6cb /src/vcl
parent462072a1fce62142d60aedb5db38634a44db69af (diff)
fix socket send() return size check
Change-Id: I098c671607c75cb34d04f421b4d16b73f7b47392 Signed-off-by: qchang <qing.chang1@huawei.com>
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/ldp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c
index d31cd2cabd4..ce243df1c96 100644
--- a/src/vcl/ldp.c
+++ b/src/vcl/ldp.c
@@ -1669,7 +1669,7 @@ send (int fd, const void *buf, size_t n, int flags)
getpid (), fd, fd, func_str, sid, sid, buf, n, flags);
size = vppcom_session_sendto (sid, (void *) buf, n, flags, NULL);
- if (size != VPPCOM_OK)
+ if (size < VPPCOM_OK)
{
errno = -size;
size = -1;