[Privoxy-commits] [privoxy] 02/04: receive_and_send_encrypted_post_data(): Additionally check for data being available
User Git
git at git.privoxy.org
Sat Apr 23 08:44:44 UTC 2022
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 4610ab9d935495d08acbb7e82bf251c18848f56c
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Fri Mar 26 14:14:12 2021 +0100
receive_and_send_encrypted_post_data(): Additionally check for data being available
Previously we relied on the TLS library reading more data from
the wire than we read in which case the is_ssl_pending() check
worked.
Sponsored by: Robert Klemme
---
jcc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/jcc.c b/jcc.c
index 23679b53..c8367e54 100644
--- a/jcc.c
+++ b/jcc.c
@@ -2370,8 +2370,9 @@ static int receive_and_send_encrypted_post_data(struct client_state *csp)
{
int content_length_known = csp->expected_client_content_length != 0;
- while (is_ssl_pending(&(csp->ssl_client_attr))
- || (content_length_known && csp->expected_client_content_length != 0))
+ while ((content_length_known && csp->expected_client_content_length != 0) ||
+ (is_ssl_pending(&(csp->ssl_client_attr)) ||
+ data_is_available(csp->cfd, csp->config->socket_timeout)))
{
unsigned char buf[BUFFER_SIZE];
int len;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list