Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d63370c
)
Fix crash on null vhost-user socket - VPP-573
03/4503/5
author
Wojciech Dec
<wdec@cisco.com>
Tue, 3 Jan 2017 09:38:37 +0000
(10:38 +0100)
committer
Damjan Marion
<dmarion.lists@gmail.com>
Tue, 3 Jan 2017 10:41:32 +0000
(10:41 +0000)
Fix for VPP-573.
Change-Id: If7d9690901efebf62fdf28219097153d98c79c0c
Signed-off-by: Wojciech Dec <wdec@cisco.com>
src/vnet/devices/virtio/vhost-user.c
patch
|
blob
|
history
diff --git
a/src/vnet/devices/virtio/vhost-user.c
b/src/vnet/devices/virtio/vhost-user.c
index
bde8106
..
f9bbae4
100644
(file)
--- a/
src/vnet/devices/virtio/vhost-user.c
+++ b/
src/vnet/devices/virtio/vhost-user.c
@@
-2578,6
+2578,11
@@
vhost_user_create_if (vnet_main_t * vnm, vlib_main_t * vm,
int rv = 0;
int server_sock_fd = -1;
+ if (sock_filename == NULL || !(strlen (sock_filename) > 0))
+ {
+ return VNET_API_ERROR_INVALID_ARGUMENT;
+ }
+
if (is_server)
{
if ((rv =