Windows port and Firefox 3.6 addon fixes:
authorKevin Wasserman <kevin.wasserman@painless-security.com>
Mon, 1 Aug 2011 18:16:09 +0000 (14:16 -0400)
committerSam Hartman <hartmans@debian.org>
Tue, 2 Aug 2011 14:07:14 +0000 (10:07 -0400)
commit5f97178a88a3c1e93f13ae531db4a9b2894fbb70
treef36c93130ceea1b216ad2972cbef7ccd2cdf1686
parentc73d6936b87ba00d65ebe3f43a92609e6a0b2a45
Windows port and Firefox 3.6 addon fixes:
malloc -> PR_Malloc
In 3.6, session state is deleted by firefox when ChallengeReceived()
sets identityInvalid true, so allocate session state as necessary in
GenerateCredentials() instead of ChallengeReceived().
Also, use continuation state instead of session state until
authentication completes.  If we don't do this, firefox
will sometimes restart the authentication in the middle of the
negotiation with a NULL username and password.
Use a smart pointer for session state to avoid leaking in error cases.
nsHttpMoonshot.cpp