]> git.sur5r.net Git - openldap/commitdiff
ITS#7135 MozNSS, PEM: fix segfault when TLS certificate key is not set
authorJan Vcelak <jvcelak@redhat.com>
Tue, 10 Jan 2012 09:11:45 +0000 (10:11 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 26 Jan 2012 05:22:47 +0000 (21:22 -0800)
Red Hat Bugzilla: #772890

libraries/libldap/tls_m.c

index 09348b70ec2b6a292b675a239fd12e8d4cf3981f..da230c58d523426339f7d77b2124c20135d5e519 100644 (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 */