ITS#7135 MozNSS, PEM: fix segfault when TLS certificate key is not set

Red Hat Bugzilla: #772890
This commit is contained in:
Jan Vcelak 2012-01-10 10:11:45 +01:00 committed by Howard Chu
parent ce2c041671
commit 1107103dd7

View File

@ -2267,8 +2267,8 @@ tlsm_deferred_ctx_init( void *arg )
}
} else { /* set up secure server */
SSLKEAType certKEA;
CERTCertificate *serverCert;
SECKEYPrivateKey *serverKey;
CERTCertificate *serverCert = NULL;
SECKEYPrivateKey *serverKey = NULL;
SECStatus status;
/* must have a certificate for the server to use */