mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
check return of ldap_pvt_tls_init() (which doesn't fail yet)
This commit is contained in:
parent
8730b78ad3
commit
d5860fb05c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user