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-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1107103dd7e767db9c080b3276cb6e742fcf36a1;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 */