mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Fix double-free on ciphersuite parse failure
GnuTLS does an implicit free on failure.
This commit is contained in:
parent
0480aec04e
commit
cb00bb0218
@ -794,7 +794,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;
|
||||
|
Loading…
Reference in New Issue
Block a user