Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
0947ca78
Commit
0947ca78
authored
Aug 30, 2013
by
Howard Chu
Committed by
Quanah Gibson-Mount
Jan 29, 2014
Browse files
ITS#7676,7677 don't leak libldap err codes
parent
6e927e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/bconfig.c
View file @
0947ca78
...
...
@@ -3792,6 +3792,7 @@ config_tls_cleanup(ConfigArgs *c) {
int
opt
=
1
;
ldap_pvt_tls_ctx_free
(
slap_tls_ctx
);
slap_tls_ctx
=
NULL
;
/* Force new ctx to be created */
rc
=
ldap_pvt_tls_set_option
(
slap_tls_ld
,
LDAP_OPT_X_TLS_NEWCTX
,
&
opt
);
...
...
@@ -3800,6 +3801,11 @@ config_tls_cleanup(ConfigArgs *c) {
ldap_pvt_tls_get_option
(
slap_tls_ld
,
LDAP_OPT_X_TLS_CTX
,
&
slap_tls_ctx
);
/* This is a no-op if it's already loaded */
load_extop
(
&
slap_EXOP_START_TLS
,
0
,
starttls_extop
);
}
else
{
if
(
rc
==
LDAP_NOT_SUPPORTED
)
rc
=
LDAP_UNWILLING_TO_PERFORM
;
else
rc
=
LDAP_OTHER
;
}
}
return
rc
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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