diff options
author | Andrew Clayton <andrew@digital-domain.net> | 2022-06-16 02:00:55 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-06-22 00:30:44 +0200 |
commit | 7a286ec0797df4530eeee6f463ae00b86463084b (patch) | |
tree | 88cead10c940b8619ebe445e20adf296296fb39a | |
parent | 29c72085262073dc5dec1ecbde1d520da9763746 (diff) | |
download | unit-7a286ec0797df4530eeee6f463ae00b86463084b.tar.gz unit-7a286ec0797df4530eeee6f463ae00b86463084b.tar.bz2 |
Socket: removed useless port < 1 check.
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; } |