summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-06-30 01:46:19 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-06-30 01:46:19 +0200
commit4bd66ed1e0cd58cb365d9ccf063e6d052877a410 (patch)
treed3e6f6e7f0dbd5670fadde0cf63a1e7ac08b3c3a
parentcc380ed0eab31d572a643b155079dcdffd16cd0f (diff)
downloadgnutls-4bd66ed1e0cd58cb365d9ccf063e6d052877a410.tar.gz
no need to check for DTLS
-rw-r--r--lib/gnutls_dtls.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/gnutls_dtls.c b/lib/gnutls_dtls.c
index d6d040530e..7a78f8fccf 100644
--- a/lib/gnutls_dtls.c
+++ b/lib/gnutls_dtls.c
@@ -613,10 +613,7 @@ int total = 0, ret, iv_size;
{
*blocksize = iv_size;
- if (!IS_DTLS(session))
- total += MAX_PAD_SIZE;
- else
- total += iv_size; /* iv_size == block_size */
+ total += iv_size; /* iv_size == block_size in DTLS */
/* We always pad with at least one byte; never 0. */
total++;