diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-11-08 14:11:58 -0600 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-11-08 14:11:58 -0600 |
commit | e1d00986c1c6848863db705964aac053191ba7c3 (patch) | |
tree | 0307de1f4cf4dcd91d4496a17d14d9a6715750c2 | |
parent | dc9210eb0190092e7b461628ff8f1aa2ad6ebe0a (diff) | |
download | busybox-w32-packaging-e1d00986c1c6848863db705964aac053191ba7c3.tar.gz busybox-w32-packaging-e1d00986c1c6848863db705964aac053191ba7c3.tar.bz2 busybox-w32-packaging-e1d00986c1c6848863db705964aac053191ba7c3.zip |
Reuse structs
-rw-r--r-- | libressl.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libressl.patch b/libressl.patch index 00e6f63..9c3b752 100644 --- a/libressl.patch +++ b/libressl.patch | |||
@@ -109,7 +109,7 @@ index 9f1dd67ec..7e8da6df2 100644 | |||
109 | static void tls_xwrite(tls_state_t *tls, int len) | 109 | static void tls_xwrite(tls_state_t *tls, int len) |
110 | { | 110 | { |
111 | diff --git a/networking/wget.c b/networking/wget.c | 111 | diff --git a/networking/wget.c b/networking/wget.c |
112 | index 6a64836fb..ae99b2972 100644 | 112 | index 6a64836fb..cb625b9fc 100644 |
113 | --- a/networking/wget.c | 113 | --- a/networking/wget.c |
114 | +++ b/networking/wget.c | 114 | +++ b/networking/wget.c |
115 | @@ -689,6 +689,7 @@ static void reset_beg_range_to_zero(void) | 115 | @@ -689,6 +689,7 @@ static void reset_beg_range_to_zero(void) |
@@ -137,10 +137,10 @@ index 6a64836fb..ae99b2972 100644 | |||
137 | + servername = xstrdup(host); | 137 | + servername = xstrdup(host); |
138 | + fflush_all(); | 138 | + fflush_all(); |
139 | + | 139 | + |
140 | + tls *ctx = tls_client(); | 140 | + struct tls *ctx = tls_client(); |
141 | + if(ctx == NULL) | 141 | + if(ctx == NULL) |
142 | + bb_error_msg_and_die("Out of memory"); | 142 | + bb_error_msg_and_die("Out of memory"); |
143 | + tls_config *config = tls_config_new(); | 143 | + struct tls_config *config = tls_config_new(); |
144 | + if(config == NULL) | 144 | + if(config == NULL) |
145 | + bb_error_msg_and_die("Out of memory"); | 145 | + bb_error_msg_and_die("Out of memory"); |
146 | + if(tls_configure(ctx,config) != 0) | 146 | + if(tls_configure(ctx,config) != 0) |