aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-12-30 14:14:30 -0800
committerDavid S. Miller <davem@davemloft.net>2020-01-02 15:51:22 -0800
commit1bfb45d860d8360322656131eac51772fec6fc8c (patch)
treeea2281b693eceb85e65b90707b9b0680b6612b04 /tools/testing/selftests/net
parentnet: Add device index to tcp_md5sig (diff)
downloadlinux-dev-1bfb45d860d8360322656131eac51772fec6fc8c.tar.xz
linux-dev-1bfb45d860d8360322656131eac51772fec6fc8c.zip
nettest: Return 1 on MD5 failure for server mode
On failure to set MD5 password, do_server should return 1 so that the program exits with 1 rather than 255. This used for negative testing when adding MD5 with device option. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net')
-rw-r--r--tools/testing/selftests/net/nettest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/nettest.c b/tools/testing/selftests/net/nettest.c
index c08f4db8330d..bb6bb1ad11e2 100644
--- a/tools/testing/selftests/net/nettest.c
+++ b/tools/testing/selftests/net/nettest.c
@@ -1194,7 +1194,7 @@ static int do_server(struct sock_args *args)
if (args->password && tcp_md5_remote(lsd, args)) {
close(lsd);
- return -1;
+ return 1;
}
while (1) {