aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-05-11 11:45:34 -0700
committerDave Barach <vpp@barachs.net>2023-05-12 23:59:38 +0000
commit4a0e08eb6068ada1d2867c32f0fb08c1af389e06 (patch)
tree8399cc4215be4cd2dc4cc5a9687c3d0352a3bd91
parentcefb178aa487a217d4ac75d7d4fa62db4b7d70fd (diff)
vcl: fix ldp ioctl FIONBIO handler
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ife5f72dc9587c9f6b8aa513cd039fa28bb22fca3
-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 b750671ecd6..ffe1673d0ef 100644
--- a/src/vcl/ldp.c
+++ b/src/vcl/ldp.c
@@ -610,7 +610,7 @@ ioctl (int fd, unsigned long int cmd, ...)
case FIONBIO:
{
- u32 flags = va_arg (ap, int) ? O_NONBLOCK : 0;
+ u32 flags = *(va_arg (ap, int *)) ? O_NONBLOCK : 0;
u32 size = sizeof (flags);
/* TBD: When VPPCOM_ATTR_[GS]ET_FLAGS supports flags other than