ITS#9530 fix double-free of LDAP_OPT_DEFBASE

This commit is contained in:
Norm Green 2021-04-21 04:35:30 +00:00 committed by Howard Chu
parent 7307d7763b
commit 87397b345b

View File

@ -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;