Skip to content

Commit 6b74633

Browse files
committed
BUG/MINOR: quic: Missing SSL session object freeing
qc_alloc_ssl_sock_ctx() allocates an SSL_CTX object for each connection. It also allocates an SSL object. When this function failed, it freed only the SSL_CTX object. The correct way to free both of them is to call qc_free_ssl_sock_ctx(). Must be backported as far as 2.6.
1 parent 0cdf529 commit 6b74633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quic_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,6 @@ int qc_alloc_ssl_sock_ctx(struct quic_conn *qc)
11741174

11751175
err:
11761176
TRACE_DEVEL("leaving on error", QUIC_EV_CONN_NEW, qc);
1177-
pool_free(pool_head_quic_ssl_sock_ctx, ctx);
1177+
qc_free_ssl_sock_ctx(&ctx);
11781178
goto leave;
11791179
}

0 commit comments

Comments
 (0)