]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
allow writes of more than the maximum record data.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 24 Jan 2013 04:19:08 +0000 (05:19 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 24 Jan 2013 04:19:08 +0000 (05:19 +0100)
lib/sbuf.c

index 62bbd10768911cbdd53366d6136c5f918c7c12db..46e9ffb311b24da4444dfd0f7d592fcae1012610 100644 (file)
@@ -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