summaryrefslogtreecommitdiff
path: root/ssl/d1_enc.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-05-10 13:38:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-05-10 13:38:18 +0000
commit6984d16671e831a23261b4f0a67cb000ddee6a7b (patch)
treef4b5d01d417d6bd55b1f0e655c8129e5b2f9a6f1 /ssl/d1_enc.c
parent5b9d0995a126e1813677b9ea0b5b55337e253cb4 (diff)
downloadopenssl-new-6984d16671e831a23261b4f0a67cb000ddee6a7b.tar.gz
oops, revert unrelated change
Diffstat (limited to 'ssl/d1_enc.c')
-rw-r--r--ssl/d1_enc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ssl/d1_enc.c b/ssl/d1_enc.c
index a8b75d7c96..becbab91c2 100644
--- a/ssl/d1_enc.c
+++ b/ssl/d1_enc.c
@@ -208,12 +208,6 @@ int dtls1_enc(SSL *s, int send)
rec->input[k]=j;
l+=i;
rec->length+=i;
-if (rec->type == SSL3_RT_APPLICATION_DATA)
- {
- memset(rec->input, 63, 64);
- rec->length = 64;
- l = 64;
- }
}
#ifdef KSSL_DEBUG
@@ -266,7 +260,7 @@ if (rec->type == SSL3_RT_APPLICATION_DATA)
}
/* TLS 1.0 does not bound the number of padding bytes by the block size.
* All of them must have value 'padding_length'. */
- if (i + bs > (int)rec->length)
+ if (i > (int)rec->length)
{
/* Incorrect padding. SSLerr() and ssl3_alert are done
* by caller: we don't want to reveal whether this is