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
0b78166a
Commit
0b78166a
authored
May 21, 2022
by
Howard Chu
Browse files
ITS#9157: check for NULL ld
parent
164c15d7
Pipeline
#4346
passed with stage
in 37 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/tls2.c
View file @
0b78166a
...
...
@@ -989,7 +989,7 @@ ldap_pvt_tls_set_option( LDAP *ld, int option, void *arg )
lo
->
ldo_tls_ctx
=
NULL
;
errmsg
[
0
]
=
0
;
rc
=
ldap_int_tls_init_ctx
(
lo
,
*
(
int
*
)
arg
,
errmsg
);
if
(
rc
&&
errmsg
[
0
]
)
{
if
(
rc
&&
errmsg
[
0
]
&&
ld
)
{
if
(
ld
->
ld_error
)
LDAP_FREE
(
ld
->
ld_error
);
ld
->
ld_error
=
LDAP_STRDUP
(
errmsg
);
...
...
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