Gitweb:
https://git.exim.org/exim.git/commitdiff/d8d7e3a4162b52382daf8319f221c085c76c5b8f
Commit: d8d7e3a4162b52382daf8319f221c085c76c5b8f
Parent: 0b049796b89a59fc322119b54199d92c404ef687
Author: Heiko Schlittermann (HS12-RIPE) <hs@???>
AuthorDate: Mon Mar 2 22:56:32 2020 +0100
Committer: Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Mon Mar 2 22:56:45 2020 +0100
GnuTLS: Do not care about corked data when uncorking
---
src/src/tls-gnu.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c
index cf89945..90c4cd0 100644
--- a/src/src/tls-gnu.c
+++ b/src/src/tls-gnu.c
@@ -3407,14 +3407,12 @@ if (len > INT_MAX)
if (!more && state->corked)
{
DEBUG(D_tls) debug_printf("gnutls_record_uncork(session=%p)\n", state->session);
- do {
- outbytes = gnutls_record_uncork(state->session, 0);
- if (outbytes < 0)
- {
- record_io_error(state, len, US"uncork", NULL);
- return -1;
- }
- } while (gnutls_record_check_corked(state->session) > 0);
+ outbytes = gnutls_record_uncork(state->session, 0);
+ if (outbytes < 0)
+ {
+ record_io_error(state, len, US"uncork", NULL);
+ return -1;
+ }
state->corked = FALSE;
}
#endif