]> git.sur5r.net Git - openldap/commitdiff
check return of ldap_pvt_tls_init() (which doesn't fail yet)
authorKurt Zeilenga <kurt@openldap.org>
Thu, 21 Sep 2000 21:30:02 +0000 (21:30 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 21 Sep 2000 21:30:02 +0000 (21:30 +0000)
servers/slapd/main.c

index d0bbbe7e1d6e983ae3029bb5c6fffca0f3207b02..0fc8b3072c552b10e3532f79c95ded24f9f0d113 100644 (file)
@@ -351,10 +351,9 @@ int main( int argc, char **argv )
        }
 
 #ifdef HAVE_TLS
-       ldap_pvt_tls_init();
+       rc = ldap_pvt_tls_init();
 
-       if (ldap_pvt_tls_init_def_ctx() != 0)
-       {
+       if (rc || ldap_pvt_tls_init_def_ctx() != 0) {
                rc = 1;
                SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 20 );
                goto destroy;