]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
allow empty fragments with padding.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 29 Jul 2013 21:51:51 +0000 (23:51 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 29 Jul 2013 21:51:51 +0000 (23:51 +0200)
lib/gnutls_record.c

index ffe5f4681a2fba5df60dbd159c244ec1258a9e5c..537a0d7dd0e9d8b34f1a0dcef6efa3c0830fb7b1 100644 (file)
@@ -501,7 +501,7 @@ _gnutls_send_tlen_int (gnutls_session_t session, content_type_t type,
     }
   else
     {
-      if (unlikely(send_data_size == 0))
+      if (unlikely((send_data_size == 0 && target_length == 0)))
         return gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR);
 
       /* now proceed to packet encryption