nettest: Return 1 on MD5 failure for server mode
authorDavid Ahern <dsahern@gmail.com>
Mon, 30 Dec 2019 22:14:30 +0000 (14:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2020 23:51:22 +0000 (15:51 -0800)
commit1bfb45d860d8360322656131eac51772fec6fc8c
treeea2281b693eceb85e65b90707b9b0680b6612b04
parent6b102db50cdde3ba2f78631ed21222edf3a5fb51
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>
tools/testing/selftests/net/nettest.c