From: Kurt Zeilenga Date: Thu, 21 Sep 2000 21:30:02 +0000 (+0000) Subject: check return of ldap_pvt_tls_init() (which doesn't fail yet) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1927 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d5860fb05ca2076bf46c23d8efadd1e53a62b53f;p=openldap check return of ldap_pvt_tls_init() (which doesn't fail yet) --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index d0bbbe7e1d..0fc8b3072c 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -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;