mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -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++;
|
p++;
|
||||||
if(*p) {
|
if(*p) {
|
||||||
/* if there's anything more than a plain decimal number */
|
/* if there's anything more than a plain decimal number */
|
||||||
*p++ = 0;
|
|
||||||
rc = sscanf(p, " - %6s", lrange);
|
rc = sscanf(p, " - %6s", lrange);
|
||||||
|
*p = 0; /* zero terminate to make str2unum() work below */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
rc = 0;
|
rc = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user