From: David Ahern Date: Mon, 30 Dec 2019 22:14:30 +0000 (-0800) Subject: nettest: Return 1 on MD5 failure for server mode X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1bfb45d860d8360322656131eac51772fec6fc8c;p=linux.git 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 Signed-off-by: David S. Miller --- diff --git a/tools/testing/selftests/net/nettest.c b/tools/testing/selftests/net/nettest.c index c08f4db8330d0..bb6bb1ad11e22 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) {