summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2022-06-07 11:17:31 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2022-06-08 19:47:44 +0900
commit2e310bb10e33f655f9b920b94809d40633641961 (patch)
tree8ead658f65147b895f28ca6e0b4a9f6bb2d817f9
parent850f404ef079eb5ce7907612ba93ceba784d634b (diff)
downloadlibassuan-2e310bb10e33f655f9b920b94809d40633641961.tar.gz
tests: Remove dead code
* tests/socks5.c (main): Unsigned value is always larger than 0 -- GnuPG-bug-id: 6018 Signed-off-by: Jakub Jelen <jjelen@redhat.com>
-rw-r--r--tests/socks5.c2
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,