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
7350a52a
Commit
7350a52a
authored
Sep 07, 2013
by
Howard Chu
Committed by
Quanah Gibson-Mount
Apr 08, 2014
Browse files
Fix double-free on ciphersuite parse failure
GnuTLS does an implicit free on failure.
parent
2071594c
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/tls_g.c
View file @
7350a52a
...
...
@@ -786,7 +786,10 @@ tlsg_parse_ciphers( tlsg_ctx *ctx, char *suites )
{
#ifdef HAVE_CIPHERSUITES
const
char
*
err
;
return
gnutls_priority_init
(
&
ctx
->
prios
,
suites
,
&
err
);
int
rc
=
gnutls_priority_init
(
&
ctx
->
prios
,
suites
,
&
err
);
if
(
rc
)
ctx
->
prios
=
NULL
;
return
rc
;
#else
char
*
ptr
,
*
end
;
int
i
,
j
,
len
,
num
;
...
...
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