mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#9530 fix double-free of LDAP_OPT_DEFBASE
This commit is contained in:
parent
efb53b7a20
commit
32e965c271
1 changed files with 3 additions and 0 deletions
|
|
@ -139,6 +139,9 @@ ldap_create( LDAP **ldp )
|
|||
ld->ld_options.ldo_defludp = NULL;
|
||||
ld->ld_options.ldo_conn_cbs = NULL;
|
||||
|
||||
ld->ld_options.ldo_defbase = gopts->ldo_defbase
|
||||
? LDAP_STRDUP( gopts->ldo_defbase ) : NULL;
|
||||
|
||||
#ifdef HAVE_CYRUS_SASL
|
||||
ld->ld_options.ldo_def_sasl_mech = gopts->ldo_def_sasl_mech
|
||||
? LDAP_STRDUP( gopts->ldo_def_sasl_mech ) : NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue