summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-11-08 15:29:32 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-11-08 15:29:32 -0600
commit95889ab1e9d4a53db81b68e4d2e6cfe4f7d1054d (patch)
tree0cd2c4481eaf711f1ef34a5b313b30461e121710
parent5600364f4aeaa078508b3e6aba030e6232c55b8f (diff)
downloadbusybox-w32-packaging-95889ab1e9d4a53db81b68e4d2e6cfe4f7d1054d.tar.gz
busybox-w32-packaging-95889ab1e9d4a53db81b68e4d2e6cfe4f7d1054d.tar.bz2
busybox-w32-packaging-95889ab1e9d4a53db81b68e4d2e6cfe4f7d1054d.zip
add new enomems
-rw-r--r--libressl.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/libressl.patch b/libressl.patch
index dea23ad..4c0fe3a 100644
--- a/libressl.patch
+++ b/libressl.patch
@@ -135,7 +135,7 @@ index 9f1dd67ec..7e8da6df2 100644
135 static void tls_xwrite(tls_state_t *tls, int len) 135 static void tls_xwrite(tls_state_t *tls, int len)
136 { 136 {
137diff --git a/networking/wget.c b/networking/wget.c 137diff --git a/networking/wget.c b/networking/wget.c
138index 6a64836fb..334becc47 100644 138index 6a64836fb..e3d4b73c5 100644
139--- a/networking/wget.c 139--- a/networking/wget.c
140+++ b/networking/wget.c 140+++ b/networking/wget.c
141@@ -689,6 +689,7 @@ static void reset_beg_range_to_zero(void) 141@@ -689,6 +689,7 @@ static void reset_beg_range_to_zero(void)
@@ -155,7 +155,7 @@ index 6a64836fb..334becc47 100644
155+static int spawn_https_helper_openssl(const char *host, unsigned port) 155+static int spawn_https_helper_openssl(const char *host, unsigned port)
156+{ 156+{
157+ char* allocated = NULL; 157+ char* allocated = NULL;
158+ char *servername, *p, *cmd; 158+ char *servername, *cmd;
159+ int sp[2]; 159+ int sp[2];
160+ if(!strchr(host,":")) 160+ if(!strchr(host,":"))
161+ host = allocated = xasprintf("%s:%u",host,port); 161+ host = allocated = xasprintf("%s:%u",host,port);
@@ -167,13 +167,13 @@ index 6a64836fb..334becc47 100644
167+ bb_error_msg_and_die("Out of memory 1"); 167+ bb_error_msg_and_die("Out of memory 1");
168+ struct tls_config *config = tls_config_new(); 168+ struct tls_config *config = tls_config_new();
169+ if(config == NULL) 169+ if(config == NULL)
170+ bb_error_msg_and_die(tls_config_error()); 170+ bb_error_msg_and_die("Out of memory 2");
171+ if(tls_configure(ctx,config) != 0) 171+ if(tls_configure(ctx,config) != 0)
172+ bb_error_msg_and_die("Failed to configure client"); 172+ bb_error_msg_and_die("Failed to configure client");
173+ tls_connect_fds(ctx,sp[0],sp[1],servername); 173+ tls_connect_fds(ctx,sp[0],sp[1],servername);
174+ close(sp[1]); 174+ close(sp[1]);
175+ tls_config_free(config); 175+ tls_config_free(config);
176+ tls_free(ctx) 176+ tls_free(ctx);
177+ free(allocated); 177+ free(allocated);
178+ free(servername); 178+ free(servername);
179+ return sp[0]; 179+ return sp[0];