mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#9530 fix double-free of LDAP_OPT_DEFBASE
This commit is contained in:
parent
7307d7763b
commit
87397b345b
@ -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 New Issue
Block a user