mirror of
https://github.com/curl/curl.git
synced 2026-06-15 21:55:42 +03:00
fixup simplify the url parser more
This commit is contained in:
parent
059127302f
commit
94bc2c17e3
1 changed files with 1 additions and 4 deletions
|
|
@ -1754,6 +1754,7 @@ static CURLcode smtp_parse_url_options(struct connectdata *conn,
|
|||
|
||||
while(!result && ptr && *ptr) {
|
||||
struct Curl_str key;
|
||||
result = CURLE_URL_MALFORMAT;
|
||||
if(!curlx_str_until(&ptr, &key, 64, '=') &&
|
||||
!curlx_str_single(&ptr, '=')) {
|
||||
struct Curl_str value;
|
||||
|
|
@ -1765,13 +1766,9 @@ static CURLcode smtp_parse_url_options(struct connectdata *conn,
|
|||
result = Curl_sasl_parse_url_auth_option(&smtpc->sasl,
|
||||
curlx_str(&value),
|
||||
curlx_strlen(&value));
|
||||
else
|
||||
result = CURLE_URL_MALFORMAT;
|
||||
if(!semi)
|
||||
break;
|
||||
}
|
||||
else
|
||||
result = CURLE_URL_MALFORMAT;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue