Skip to content

Commit

Permalink
http: fix the auth check
Browse files Browse the repository at this point in the history
It used the wrong variable.

Follow-up to d1fc1c4
Pointed-out-by: qhill on github
Ref: curl#16406 (review)
Closes curl#16419
  • Loading branch information
bagder committed Feb 21, 2025
1 parent 7cb3903 commit 9395849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ static bool authcmp(const char *auth, const char *line)
{
/* the auth string must not have an alnum following */
size_t n = strlen(auth);
return strncasecompare(auth, line, n) && !ISALNUM(auth[n]);
return strncasecompare(auth, line, n) && !ISALNUM(line[n]);
}
#endif

Expand Down

0 comments on commit 9395849

Please sign in to comment.