summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-11-15 15:37:56 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-11-15 15:37:56 -0600
commit781a6a3e646366701132cacac51bb4fb6a469fc1 (patch)
tree8ff101930e193f2120902198c3e524350934fe38
parent09d9b8a985547078bc01b9ef0e43cc0fa31c3fbd (diff)
downloadbusybox-w32-packaging-781a6a3e646366701132cacac51bb4fb6a469fc1.tar.gz
busybox-w32-packaging-781a6a3e646366701132cacac51bb4fb6a469fc1.tar.bz2
busybox-w32-packaging-781a6a3e646366701132cacac51bb4fb6a469fc1.zip
Fix memory leak
-rw-r--r--libressl.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/libressl.patch b/libressl.patch
index 00d5d4b..0322ddd 100644
--- a/libressl.patch
+++ b/libressl.patch
@@ -102,7 +102,7 @@ index 9f1dd67ec..60e1afe99 100644
102 static void tls_xwrite(tls_state_t *tls, int len) 102 static void tls_xwrite(tls_state_t *tls, int len)
103 { 103 {
104diff --git a/networking/wget.c b/networking/wget.c 104diff --git a/networking/wget.c b/networking/wget.c
105index 6a64836fb..4a5b4c9f0 100644 105index 6a64836fb..f859f429a 100644
106--- a/networking/wget.c 106--- a/networking/wget.c
107+++ b/networking/wget.c 107+++ b/networking/wget.c
108@@ -1,4 +1,3 @@ 108@@ -1,4 +1,3 @@
@@ -282,7 +282,7 @@ index 6a64836fb..4a5b4c9f0 100644
282+ bb_error_msg_and_die("Failed to set ca path"); 282+ bb_error_msg_and_die("Failed to set ca path");
283+ if(tls_config_set_ca_file(config, "cert.pem") != 0) 283+ if(tls_config_set_ca_file(config, "cert.pem") != 0)
284+ bb_error_msg_and_die("Failed to set ca file"); 284+ bb_error_msg_and_die("Failed to set ca file");
285+ gather_certificates(config); 285+ pemmem = gather_certificates(config);
286+ if(tls_configure(ctx,config) != 0) 286+ if(tls_configure(ctx,config) != 0)
287+ bb_error_msg_and_die("Failed to configure client"); 287+ bb_error_msg_and_die("Failed to configure client");
288+ sfp = tmpfile(); 288+ sfp = tmpfile();