diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2020-03-02 22:56:32 +0100 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2020-03-02 22:56:45 +0100 |
commit | d8d7e3a4162b52382daf8319f221c085c76c5b8f (patch) | |
tree | 439f9939469ddd3244516dbbdb4231585b241b30 /src | |
parent | 0b049796b89a59fc322119b54199d92c404ef687 (diff) |
GnuTLS: Do not care about corked data when uncorking
Diffstat (limited to 'src')
-rw-r--r-- | src/src/tls-gnu.c | 14 |
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 |