Merge pull request #5471 from icing/quic-mem-leak

Fix memory leak in QUIC transport parameters extension
pull/5468/head
David Garske 2022-08-16 13:22:20 -07:00 committed by GitHub
commit 3f7d56d957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -10445,6 +10445,10 @@ int TLSX_QuicTP_Use(WOLFSSL* ssl, TLSX_Type ext_type, int is_response)
goto cleanup;
}
}
if (extension->data) {
QuicTransportParam_free(extension->data, ssl->heap);
extension->data = NULL;
}
extension->resp = is_response;
extension->data = (void*)QuicTransportParam_dup(ssl->quic.transport_local, ssl->heap);
if (!extension->data) {