From: Florin Coras Date: Thu, 11 May 2023 18:45:34 +0000 (-0700) Subject: vcl: fix ldp ioctl FIONBIO handler X-Git-Tag: v23.10-rc0~37 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=4a0e08eb6068ada1d2867c32f0fb08c1af389e06;p=vpp.git vcl: fix ldp ioctl FIONBIO handler Type: fix Signed-off-by: Florin Coras Change-Id: Ife5f72dc9587c9f6b8aa513cd039fa28bb22fca3 --- 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