mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 14:42:10 -05:00
ITS#9530 fix double-free of LDAP_OPT_DEFBASE
This commit is contained in:
parent
7307d7763b
commit
87397b345b
1 changed files with 3 additions and 0 deletions
|
|
@ -179,6 +179,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