mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 12:35:04 -05:00
curl: --local-port fix followup
Regression by 52db54869e
.
Reported-by: infinnovation-dev on github
Fixes #3248
Closes #3249
This commit is contained in:
parent
08b1a851cc
commit
f859b05c66
@ -943,8 +943,8 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
||||
p++;
|
||||
if(*p) {
|
||||
/* if there's anything more than a plain decimal number */
|
||||
*p++ = 0;
|
||||
rc = sscanf(p, " - %6s", lrange);
|
||||
*p = 0; /* zero terminate to make str2unum() work below */
|
||||
}
|
||||
else
|
||||
rc = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user