http: fix the auth check

It used the wrong variable.

Follow-up to d1fc1c4a85
Pointed-out-by: qhill on github
Ref: https://github.com/curl/curl/pull/16406#pullrequestreview-2632734134
Closes #16419
This commit is contained in:
Daniel Stenberg 2025-02-21 12:28:19 +01:00
parent 7cb3903e25
commit 93958499f2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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