]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
netrc: compare user name case sensitively
authorDaniel Stenberg <daniel@haxx.se>
Thu, 6 Oct 2022 07:16:42 +0000 (09:16 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 6 Oct 2022 08:25:06 +0000 (10:25 +0200)
User name comparisions in netrc need to match the case.

Closes #9657

lib/netrc.c

index 3232274dd77d537647d0730b93fefc34f761aeea..e183b6271de35aab3edaf9a46860287343cdc993 100644 (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) {