vcl: fix ldp ioctl FIONBIO handler 13/38813/3
authorFlorin Coras <fcoras@cisco.com>
Thu, 11 May 2023 18:45:34 +0000 (11:45 -0700)
committerDave Barach <vpp@barachs.net>
Fri, 12 May 2023 23:59:38 +0000 (23:59 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ife5f72dc9587c9f6b8aa513cd039fa28bb22fca3

src/vcl/ldp.c

index b750671..ffe1673 100644 (file)
@@ -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