mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +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
|
|
@ -486,8 +486,8 @@ nsHttpNTLMAuth::GenerateCredentials(nsIHttpAuthenticableChannel *authChannel,
|
|||
len -= 5;
|
||||
|
||||
// strip off any padding (see bug 230351)
|
||||
while (challenge[len - 1] == '=')
|
||||
len--;
|
||||
while (len && challenge[len - 1] == '=')
|
||||
len--;
|
||||
|
||||
// decode into the input secbuffer
|
||||
rv = Base64Decode(challenge, len, (char**)&inBuf, &inBufLen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue