aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorwanghanlin <wanghanlin@corp.netease.com>2021-07-06 15:01:48 +0800
committerFlorin Coras <florin.coras@gmail.com>2021-07-06 14:23:42 +0000
commit97c6e0d4d1fe634fac198e5de1757a24b9063767 (patch)
tree497a62aafb767bcf5e6cd6ff6e191834b41ebcf8 /src/vcl
parent8cc66b55ae8b783aac9c780baddaead686d7df8f (diff)
vcl: fix return value check for ldp_fd_to_vlsh
Type: fix Signed-off-by: wanghanlin <wanghanlin@corp.netease.com> Change-Id: Iaad4022e84f4979016bb46c2ff5cfc5d43d6ff50
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/ldp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c
index 316d97df2e2..5edb935006f 100644
--- a/src/vcl/ldp.c
+++ b/src/vcl/ldp.c
@@ -1603,7 +1603,7 @@ sendto (int fd, const void *buf, size_t n, int flags,
ldp_init_check ();
vlsh = ldp_fd_to_vlsh (fd);
- if (vlsh != INVALID_SESSION_ID)
+ if (vlsh != VLS_INVALID_HANDLE)
{
size = ldp_vls_sendo (vlsh, buf, n, flags, addr, addr_len);
if (size < 0)
@@ -1702,7 +1702,7 @@ sendmmsg (int fd, struct mmsghdr *vmessages, unsigned int vlen, int flags)
ldp_init_check ();
- if (sh != INVALID_SESSION_ID)
+ if (sh != VLS_INVALID_HANDLE)
{
clib_warning ("LDP<%d>: LDP-TBD", getpid ());
errno = ENOSYS;
@@ -1802,7 +1802,7 @@ recvmmsg (int fd, struct mmsghdr *vmessages,
ldp_init_check ();
- if (sh != INVALID_SESSION_ID)
+ if (sh != VLS_INVALID_HANDLE)
{
clib_warning ("LDP<%d>: LDP-TBD", getpid ());
errno = ENOSYS;