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.
This commit is contained in:
committed by
Alejandro Colomar
parent
29c7208526
commit
7a286ec079
@@ -1090,7 +1090,7 @@ nxt_job_sockaddr_inet_parse(nxt_job_sockaddr_parse_t *jbs)
|
|||||||
port = nxt_int_parse(host, length);
|
port = nxt_int_parse(host, length);
|
||||||
|
|
||||||
if (port > 0) {
|
if (port > 0) {
|
||||||
if (port < 1 || port > 65535) {
|
if (port > 65535) {
|
||||||
goto invalid_port;
|
goto invalid_port;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user