Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
e03a00ab
Commit
e03a00ab
authored
Apr 21, 2021
by
Norm Green
Committed by
Quanah Gibson-Mount
Apr 30, 2021
Browse files
ITS
#9530
fix double-free of LDAP_OPT_DEFBASE
parent
497cd5d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/open.c
View file @
e03a00ab
...
@@ -179,6 +179,9 @@ ldap_create( LDAP **ldp )
...
@@ -179,6 +179,9 @@ ldap_create( LDAP **ldp )
ld
->
ld_options
.
ldo_defludp
=
NULL
;
ld
->
ld_options
.
ldo_defludp
=
NULL
;
ld
->
ld_options
.
ldo_conn_cbs
=
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
#ifdef HAVE_CYRUS_SASL
ld
->
ld_options
.
ldo_def_sasl_mech
=
gopts
->
ldo_def_sasl_mech
ld
->
ld_options
.
ldo_def_sasl_mech
=
gopts
->
ldo_def_sasl_mech
?
LDAP_STRDUP
(
gopts
->
ldo_def_sasl_mech
)
:
NULL
;
?
LDAP_STRDUP
(
gopts
->
ldo_def_sasl_mech
)
:
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment