summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-27 13:24:42 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-27 13:24:42 +0200
commitfeb4952030f2df4a6dc4405567a3e17d6d639fc3 (patch)
tree75d0ae150b04f6c4610f723f9dcabfc30b7dc3d5
parent1667d2eecd4094a239db9f5ae54990d4c270c52a (diff)
downloadgnutls-feb4952030f2df4a6dc4405567a3e17d6d639fc3.tar.gz
Do not count pad and MAC as received data.
-rw-r--r--lib/gnutls_record.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gnutls_record.h b/lib/gnutls_record.h
index ef45431b09..aff6f96979 100644
--- a/lib/gnutls_record.h
+++ b/lib/gnutls_record.h
@@ -57,6 +57,8 @@ int ret;
else
ret = MAX_RECORD_RECV_SIZE(session);
+ ret += MAX_PAD_SIZE + MAX_HASH_SIZE + MAX_CIPHER_BLOCK_SIZE;
+
return ret;
}