From d5860fb05ca2076bf46c23d8efadd1e53a62b53f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 21 Sep 2000 21:30:02 +0000 Subject: [PATCH] check return of ldap_pvt_tls_init() (which doesn't fail yet) --- servers/slapd/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.5