From b284fb607aca169fd0f8ca8e53292388c1a9ad78 Mon Sep 17 00:00:00 2001 From: LDA Date: Thu, 27 Jun 2024 16:45:32 +0200 Subject: [PATCH 1/2] [FIX] Fix HTTP leakage --- src/Http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http.c b/src/Http.c index 3572c66..6bbeacb 100644 --- a/src/Http.c +++ b/src/Http.c @@ -621,7 +621,7 @@ HttpParseHeaders(Stream * fp) strncpy(headerValue, headerPtr, len); - HashMapSet(headers, headerKey, headerValue); + Free(HashMapSet(headers, headerKey, headerValue)); Free(headerKey); } From b3be10e112d84e20e24d9e83ccd2ea9f5cbc9516 Mon Sep 17 00:00:00 2001 From: LDA Date: Thu, 27 Jun 2024 16:53:56 +0200 Subject: [PATCH 2/2] [FIX] Last TLS oopsie! We should actually consider bringing back CI when possible. --- src/Tls/TlsOpenSSL.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tls/TlsOpenSSL.c b/src/Tls/TlsOpenSSL.c index a956d2a..cf07ce0 100644 --- a/src/Tls/TlsOpenSSL.c +++ b/src/Tls/TlsOpenSSL.c @@ -81,7 +81,7 @@ TlsInitClient(int fd, const char *serverName) cookie->method = TLS_client_method(); cookie->ctx = SSL_CTX_new(cookie->method); - coolie->fd = fd; + cookie->fd = fd; if (!cookie->ctx) { goto error;