mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08:00
netrc: compare user name case sensitively
User name comparisions in netrc need to match the case. Closes #9657
This commit is contained in:
parent
ea3ce80fa8
commit
6d90308a39
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user