From 4a0e08eb6068ada1d2867c32f0fb08c1af389e06 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 11 May 2023 11:45:34 -0700 Subject: [PATCH] vcl: fix ldp ioctl FIONBIO handler Type: fix Signed-off-by: Florin Coras Change-Id: Ife5f72dc9587c9f6b8aa513cd039fa28bb22fca3 --- src/vcl/ldp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.16.6