mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9157: check for NULL ld
This commit is contained in:
parent
164c15d7ca
commit
0b78166a47
1 changed files with 1 additions and 1 deletions
|
|
@ -989,7 +989,7 @@ ldap_pvt_tls_set_option( LDAP *ld, int option, void *arg )
|
|||
lo->ldo_tls_ctx = NULL;
|
||||
errmsg[0] = 0;
|
||||
rc = ldap_int_tls_init_ctx( lo, *(int *)arg, errmsg );
|
||||
if ( rc && errmsg[0] ) {
|
||||
if ( rc && errmsg[0] && ld ) {
|
||||
if ( ld->ld_error )
|
||||
LDAP_FREE( ld->ld_error );
|
||||
ld->ld_error = LDAP_STRDUP( errmsg );
|
||||
|
|
|
|||
Loading…
Reference in a new issue