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>
This commit is contained in:
parent
6b102db50c
commit
1bfb45d860
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue