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:
parent
7cb3903e25
commit
93958499f2
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user