diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-11-12 16:43:17 -0600 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-11-12 16:43:17 -0600 |
commit | ac2438aca36b1e978470a5aff8a46a4bae6e5408 (patch) | |
tree | b185f7d76d09f1d7eda6f14c15dacf14ec5e067f | |
parent | ca9f7cd4bbaef2c0455abafaebbcda632f811654 (diff) | |
download | busybox-w32-packaging-ac2438aca36b1e978470a5aff8a46a4bae6e5408.tar.gz busybox-w32-packaging-ac2438aca36b1e978470a5aff8a46a4bae6e5408.tar.bz2 busybox-w32-packaging-ac2438aca36b1e978470a5aff8a46a4bae6e5408.zip |
explicitly check for error
-rw-r--r-- | libressl.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libressl.patch b/libressl.patch index 8cec908..cdcbf53 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 | { |
137 | diff --git a/networking/wget.c b/networking/wget.c | 137 | diff --git a/networking/wget.c b/networking/wget.c |
138 | index 6a64836fb..330c231c8 100644 | 138 | index 6a64836fb..97ca7382e 100644 |
139 | --- a/networking/wget.c | 139 | --- a/networking/wget.c |
140 | +++ b/networking/wget.c | 140 | +++ b/networking/wget.c |
141 | @@ -169,7 +169,11 @@ | 141 | @@ -169,7 +169,11 @@ |
@@ -201,7 +201,7 @@ index 6a64836fb..330c231c8 100644 | |||
201 | + char c; | 201 | + char c; |
202 | + char *buf_ptr; | 202 | + char *buf_ptr; |
203 | + ssize_t len = tls_read(ctx,G.wget_buf, sizeof(G.wget_buf)); | 203 | + ssize_t len = tls_read(ctx,G.wget_buf, sizeof(G.wget_buf)); |
204 | + if(len < 0) | 204 | + if(len == -1) |
205 | + bb_error_msg_and_die("tls read error: %s", tls_error(ctx)); | 205 | + bb_error_msg_and_die("tls read error: %s", tls_error(ctx)); |
206 | + printf("Read %llu bytes\n", len); | 206 | + printf("Read %llu bytes\n", len); |
207 | + buf_ptr = strchrnul(G.wget_buf, '\n'); | 207 | + buf_ptr = strchrnul(G.wget_buf, '\n'); |