summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-29 23:51:51 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-29 23:51:51 +0200
commitfa908a83fd0a90f9a482a1d4f4ae096d7d6a7fb2 (patch)
tree7f05b9584a9f30be85bfb1dcb50f6067cbf0a6ae
parentb96699735fc495566dda847333a93e5ffae51b8f (diff)
downloadgnutls-fa908a83fd0a90f9a482a1d4f4ae096d7d6a7fb2.tar.gz
allow empty fragments with padding.
-rw-r--r--lib/gnutls_record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c
index ffe5f4681a..537a0d7dd0 100644
--- a/lib/gnutls_record.c
+++ b/lib/gnutls_record.c
@@ -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