mirror of
https://github.com/curl/curl.git
synced 2026-05-19 13:16:20 +03:00
curl: --local-port range was not "including"
The end port number in a given range was not included in the range used, as it is documented to be. Reported-by: infinnovation-dev on github Fixes #3251 Closes #3255
This commit is contained in:
parent
27cb384679
commit
fcf3f13368
1 changed files with 1 additions and 1 deletions
|
|
@ -958,7 +958,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
err = str2unum(&config->localportrange, lrange);
|
||||
if(err || (config->localportrange > 65535))
|
||||
return PARAM_BAD_USE;
|
||||
config->localportrange -= config->localport;
|
||||
config->localportrange -= (config->localport-1);
|
||||
if(config->localportrange < 1)
|
||||
return PARAM_BAD_USE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue