mirror of
https://github.com/curl/curl.git
synced 2026-06-18 20:15:37 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue