From: Heiko Schlittermann (HS12-RIPE) Date: Mon, 2 Mar 2020 21:56:32 +0000 (+0100) Subject: GnuTLS: Do not care about corked data when uncorking X-Git-Url: https://git.exim.org/users/jgh/exim.git/commitdiff_plain/d8d7e3a4162b52382daf8319f221c085c76c5b8f?hp=0b049796b89a59fc322119b54199d92c404ef687 GnuTLS: Do not care about corked data when uncorking --- diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c index cf899454f..90c4cd024 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