Skip to content

Commit f52e60f

Browse files
Kai Zhangsimo5
authored andcommitted
tests: fix userproxytest missed NULL argument pointer
Execv syscall needs the argument array of pointers must be terminated by a null pointer, otherwise the garbage data might break the test. Signed-off-by: Kai Zhang <zhangkai@iscas.ac.cn>
1 parent ec46345 commit f52e60f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/userproxytest.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ char *srv_args[] = {
1717
"-u", "-i",
1818
"-d", "--debug-level=1",
1919
"-s", "./testdir/userproxytest.sock",
20-
"--idle-timeout=3"
20+
"--idle-timeout=3",
21+
NULL
2122
};
2223

2324
int mock_activation_sockets(void)

0 commit comments

Comments
 (0)