Commit 1bfb45d8 authored by David Ahern's avatar David Ahern Committed by David S. Miller
Browse files

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: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6b102db5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {