summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-10-30 13:04:19 +0100
committerDamjan Marion <damarion@cisco.com>2018-10-30 13:04:27 +0100
commit0215fb4aee78543470d3f1538859b387fa70fb01 (patch)
treec076e6ee2a035e6549ad62dec76139c469228533
parenta47ea2b3b0e9a855774ca0d7db2b7fa9e2943300 (diff)
vppinfra: fix bug in default_socket_sendmsg
Change-Id: Ia9b74761ce511d218bb5319c7c9b5e58be3e2e8a Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/vppinfra/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/socket.c b/src/vppinfra/socket.c
index 990d0f7390b..109cbad7bb8 100644
--- a/src/vppinfra/socket.c
+++ b/src/vppinfra/socket.c
@@ -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;