diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-27 13:24:42 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-27 13:24:42 +0200 |
commit | feb4952030f2df4a6dc4405567a3e17d6d639fc3 (patch) | |
tree | 75d0ae150b04f6c4610f723f9dcabfc30b7dc3d5 | |
parent | 1667d2eecd4094a239db9f5ae54990d4c270c52a (diff) | |
download | gnutls-feb4952030f2df4a6dc4405567a3e17d6d639fc3.tar.gz |
Do not count pad and MAC as received data.
-rw-r--r-- | lib/gnutls_record.h | 2 |
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; } |