]> git.sur5r.net Git - openldap/commitdiff
More cleanup
authorHoward Chu <hyc@openldap.org>
Thu, 5 Mar 2009 09:15:02 +0000 (09:15 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 5 Mar 2009 09:15:02 +0000 (09:15 +0000)
libraries/libldap/tls_g.c

index 5bef8ee1a24ad3e8d108a5b6cb422e1b3c1f785c..738fb36fc3b8b3a117fa3ccd09c4aece2da5dfc8 100644 (file)
@@ -378,7 +378,7 @@ tlsg_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server )
                 */
                if ( max == 1 && !gnutls_x509_crt_check_issuer( certs[0], certs[0] )) {
                        gnutls_x509_crt_t *cas;
-                       unsigned int i, j = 0, ncas;
+                       unsigned int i, j, ncas;
 
                        gnutls_certificate_get_x509_cas( ctx->cred, &cas, &ncas );
                        for ( i = 1; i<VERIFY_DEPTH; i++ ) {