summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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