diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-05-23 09:54:13 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-05-23 09:54:13 +0200 |
commit | 50b6bd8f38aaa9065c530e18e9e1357f8d46db11 (patch) | |
tree | dfb9181994f9016717b5f0dfef0e8fd7f3f214e3 | |
parent | 3dcd0f873d3a03859a7f5c6bb05df8fbee094127 (diff) | |
download | gnutls-50b6bd8f38aaa9065c530e18e9e1357f8d46db11.tar.gz |
Revert "Added sanity check in pad size."
This reverts commit 3dcd0f873d3a03859a7f5c6bb05df8fbee094127.
-rw-r--r-- | lib/gnutls_cipher.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c index 71f5a98a03..28351218bd 100644 --- a/lib/gnutls_cipher.c +++ b/lib/gnutls_cipher.c @@ -561,8 +561,6 @@ _gnutls_ciphertext2compressed (gnutls_session_t session, return GNUTLS_E_DECRYPTION_FAILED; } pad = ciphertext.data[ciphertext.size - 1]; /* pad */ - if (pad+1 > ciphertext.size-hash_size) - pad_failed = GNUTLS_E_DECRYPTION_FAILED; /* Check the pading bytes (TLS 1.x). * Note that we access all 256 bytes of ciphertext for padding check |