From: Nikos Mavrogiannopoulos Date: Thu, 24 Jan 2013 04:19:08 +0000 (+0100) Subject: allow writes of more than the maximum record data. X-Git-Tag: gnutls_3_1_7~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6998532f146b68c462a20d46a0533ed261db238;p=thirdparty%2Fgnutls.git allow writes of more than the maximum record data. --- diff --git a/lib/sbuf.c b/lib/sbuf.c index 62bbd10768..46e9ffb311 100644 --- a/lib/sbuf.c +++ b/lib/sbuf.c @@ -103,7 +103,7 @@ int ret; if (ret < 0) return gnutls_assert_val(ret); - if ((sb->flags & GNUTLS_SBUF_QUEUE_FLUSHES) && + while ((sb->flags & GNUTLS_SBUF_QUEUE_FLUSHES) && sb->buf.length >= MAX_RECORD_SEND_SIZE(sb->session)) { do