summaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/memif_test.c
diff options
context:
space:
mode:
authorChris Luke <chrisy@flirble.org>2017-09-05 11:59:55 -0400
committerDave Wallace <dwallacelf@gmail.com>2017-09-06 16:29:49 +0000
commit2951d901a5b6ac48b0203b2da9e35ea419b9b4d6 (patch)
treee3d28e4997d6e51c1a44d69fde60266771ada9a7 /src/plugins/memif/memif_test.c
parent704018cf117b6667f08b09d6db5fbec105bf6d57 (diff)
Fixes for issues raised by Coverity (VPP-972)
Change-Id: I4b1f27b95d67d48b7a13750ff8754c344ed7afa7 Signed-off-by: Chris Luke <chrisy@flirble.org>
Diffstat (limited to 'src/plugins/memif/memif_test.c')
-rw-r--r--src/plugins/memif/memif_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/memif/memif_test.c b/src/plugins/memif/memif_test.c
index cbef4dfa22e..a7c23daae9c 100644
--- a/src/plugins/memif/memif_test.c
+++ b/src/plugins/memif/memif_test.c
@@ -186,10 +186,10 @@ api_memif_create (vat_main_t * vam)
strncpy ((char *) mp->socket_filename, (char *) socket_filename, 127);
vec_free (socket_filename);
}
- if (socket_filename != 0)
+ if (secret != 0)
{
strncpy ((char *) mp->secret, (char *) secret, 16);
- vec_free (socket_filename);
+ vec_free (secret);
}
memcpy (mp->hw_addr, hw_addr, 6);
mp->rx_queues = rx_queues;