diff options
author | Andrew Clayton <andrew@digital-domain.net> | 2022-06-14 17:29:08 +0100 |
---|---|---|
committer | Andrew Clayton <andrew@digital-domain.net> | 2022-06-15 21:14:50 +0100 |
commit | 3de7f7ec36d6291959233c4aa78732e720f62202 (patch) | |
tree | 8de74725fb0f2da80748c7931c7115ff04103692 | |
parent | a66cd9a0f380b26ac4ba4b329052822d7d2e8e53 (diff) | |
download | unit-archive/knownConditionTrueFalse.tar.gz unit-archive/knownConditionTrueFalse.tar.bz2 |
Socket: removed useless port < 1 check.archive/knownConditionTrueFalse
In src/nxt_sockaddr.c::nxt_job_sockaddr_inet_parse() there is a check
that port > 0 then there is a check that port < 1 || port > 65535, well
we _know_ it can't be less than 1.
-rw-r--r-- | src/nxt_sockaddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_sockaddr.c b/src/nxt_sockaddr.c index 730428e4..71e50e3c 100644 --- a/src/nxt_sockaddr.c +++ b/src/nxt_sockaddr.c @@ -1090,7 +1090,7 @@ nxt_job_sockaddr_inet_parse(nxt_job_sockaddr_parse_t *jbs) port = nxt_int_parse(host, length); if (port > 0) { - if (port < 1 || port > 65535) { + if (port > 65535) { goto invalid_port; } |