diff options
author | Jakub Jelen <[email protected]> | 2022-06-07 09:17:31 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-06-08 10:47:44 +0000 |
commit | 2e310bb10e33f655f9b920b94809d40633641961 (patch) | |
tree | 8ead658f65147b895f28ca6e0b4a9f6bb2d817f9 | |
parent | config: Remove 18 years unused variable (diff) | |
download | libassuan-2e310bb10e33f655f9b920b94809d40633641961.tar.gz libassuan-2e310bb10e33f655f9b920b94809d40633641961.zip |
tests: Remove dead code
* tests/socks5.c (main): Unsigned value is always larger than 0
--
GnuPG-bug-id: 6018
Signed-off-by: Jakub Jelen <[email protected]>
-rw-r--r-- | tests/socks5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/socks5.c b/tests/socks5.c index b3754b8..f63992c 100644 --- a/tests/socks5.c +++ b/tests/socks5.c @@ -216,7 +216,7 @@ main (int argc, char **argv) cred = NULL; port = strtoul (argv[1], NULL, 10); - if (port < 0 || port > 65535) + if (port > 65535) log_fatal ("port number out of range\n"); sock = assuan_sock_connect_byname (argv[0], port, 0, cred, |