mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Handle missing base64 challenge in NegotiateAuth and NTLMAuth.
This commit is contained in:
parent
a0c6c89208
commit
d43f7275d0
2 changed files with 6 additions and 3 deletions
|
|
@ -530,8 +530,11 @@ nsHttpNegotiateAuth::GenerateCredentials(nsIHttpAuthenticableChannel *authChanne
|
|||
challenge++;
|
||||
len = strlen(challenge);
|
||||
|
||||
if (!len)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
// strip off any padding (see bug 230351)
|
||||
while (challenge[len - 1] == '=')
|
||||
while (len && challenge[len - 1] == '=')
|
||||
len--;
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue