Commit e03a00ab authored by Norm Green's avatar Norm Green Committed by Quanah Gibson-Mount
Browse files

ITS#9530 fix double-free of LDAP_OPT_DEFBASE

parent 497cd5d6
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment