netrc: compare user name case sensitively

User name comparisions in netrc need to match the case.

Closes #9657
This commit is contained in:
Daniel Stenberg 2022-10-06 09:16:42 +02:00
parent ea3ce80fa8
commit 6d90308a39
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -198,7 +198,7 @@ static int parsenetrc(const char *host,
/* we are now parsing sub-keywords concerning "our" host */
if(state_login) {
if(specific_login) {
state_our_login = strcasecompare(login, tok);
state_our_login = !strcmp(login, tok);
}
else if(!login || strcmp(login, tok)) {
if(login_alloc) {