summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/tls-gnu.c14
1 files changed, 6 insertions, 8 deletions
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