mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Don't crash on SSL2 failures.
This commit is contained in:
parent
2255734388
commit
e5822372e8
@ -32,7 +32,7 @@
|
||||
* may use your version of this file under either the MPL or the
|
||||
* GPL.
|
||||
*
|
||||
* $Id: sslcon.c,v 1.12 2001/09/25 01:25:41 wtc%netscape.com Exp $
|
||||
* $Id: sslcon.c,v 1.13 2001/10/31 20:03:29 relyea%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "nssrenam.h"
|
||||
@ -1581,6 +1581,7 @@ ssl2_CreateSessionCypher(sslSocket *ss, sslSessionID *sid, PRBool isClient)
|
||||
if (readcx) (*sec->destroy)(readcx, PR_TRUE);
|
||||
if (writecx) (*sec->destroy)(writecx, PR_TRUE);
|
||||
}
|
||||
sec->destroy = NULL;
|
||||
if (slot) PK11_FreeSlot(slot);
|
||||
|
||||
sec_loser:
|
||||
|
Loading…
Reference in New Issue
Block a user