curl: --local-port fix followup

Regression by 52db54869e.

Reported-by: infinnovation-dev on github
Fixes #3248
Closes #3249
This commit is contained in:
Daniel Stenberg 2018-11-07 23:26:55 +01:00
parent 08b1a851cc
commit f859b05c66
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;