Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppinfra: simpler and faster pool_foreach
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
vhost_user.c
diff --git
a/src/vnet/devices/virtio/vhost_user.c
b/src/vnet/devices/virtio/vhost_user.c
index
d8c79ea
..
f7cecef
100644
(file)
--- a/
src/vnet/devices/virtio/vhost_user.c
+++ b/
src/vnet/devices/virtio/vhost_user.c
@@
-1230,6
+1230,7
@@
vhost_user_process (vlib_main_t * vm,
/* try to connect */
strncpy (sun.sun_path, (char *) vui->sock_filename,
sizeof (sun.sun_path) - 1);
+ sun.sun_path[sizeof (sun.sun_path) - 1] = 0;
/* Avoid hanging VPP if the other end does not accept */
if (fcntl(sockfd, F_SETFL, O_NONBLOCK) < 0)