From: Jan Vcelak Date: Tue, 10 Jan 2012 09:11:45 +0000 (+0100) Subject: ITS#7135 MozNSS, PEM: fix segfault when TLS certificate key is not set X-Git-Tag: OPENLDAP_REL_ENG_2_4_29~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=702dc4554b1f834936918005097341f07d3fb15a;p=openldap ITS#7135 MozNSS, PEM: fix segfault when TLS certificate key is not set Red Hat Bugzilla: #772890 --- diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c index 09348b70ec..da230c58d5 100644 --- a/libraries/libldap/tls_m.c +++ b/libraries/libldap/tls_m.c @@ -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 */