Commit 7350a52a authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

Fix double-free on ciphersuite parse failure

GnuTLS does an implicit free on failure.
parent 2071594c
......@@ -786,7 +786,10 @@ tlsg_parse_ciphers( tlsg_ctx *ctx, char *suites )
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;
char *ptr, *end;
int i, j, len, num;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment