vppinfra: fix bug in default_socket_sendmsg 01/15601/1
authorDamjan Marion <damarion@cisco.com>
Tue, 30 Oct 2018 12:04:19 +0000 (13:04 +0100)
committerDamjan Marion <damarion@cisco.com>
Tue, 30 Oct 2018 12:04:27 +0000 (13:04 +0100)
Change-Id: Ia9b74761ce511d218bb5319c7c9b5e58be3e2e8a
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vppinfra/socket.c

index 990d0f7..109cbad 100644 (file)
@@ -278,7 +278,7 @@ default_socket_sendmsg (clib_socket_t * s, void *msg, int msglen,
 {
   struct msghdr mh = { 0 };
   struct iovec iov[1];
-  char ctl[CMSG_SPACE (sizeof (int)) * num_fds];
+  char ctl[CMSG_SPACE (sizeof (int) * num_fds)];
   int rv;
 
   iov[0].iov_base = msg;