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:
e3063d3
)
vppinfra: zero-terminate self netns path
02/43602/2
author
Alexander Maltsev
<
[email protected]
>
Wed, 10 Sep 2025 13:57:03 +0000
(18:57 +0500)
committer
Damjan Marion
<
[email protected]
>
Mon, 15 Sep 2025 18:36:05 +0000
(18:36 +0000)
Fix tap_create_if sometimes failing to get current netns.
Type: fix
Change-Id: I30f7cd623028da52240d8d29077a01a59cb96f77
Signed-off-by: Alexander Maltsev <
[email protected]
>
src/vppinfra/linux/netns.c
patch
|
blob
|
history
diff --git
a/src/vppinfra/linux/netns.c
b/src/vppinfra/linux/netns.c
index
2bd62bd
..
487be48
100644
(file)
--- a/
src/vppinfra/linux/netns.c
+++ b/
src/vppinfra/linux/netns.c
@@
-27,7
+27,7
@@
clib_netns_open (u8 *netns_u8)
int fd;
if ((NULL) == netns)
- s = format (0, "/proc/self/ns/net
"
);
+ s = format (0, "/proc/self/ns/net
%c", 0
);
else if (strncmp (netns, "pid:", 4) == 0)
s = format (0, "/proc/%u/ns/net%c", atoi (netns + 4), 0);
else if (netns[0] == '/')