From: Nikos Mavrogiannopoulos Date: Tue, 13 Nov 2007 19:55:48 +0000 (+0200) Subject: When decompressed data are more than the record max size warn using X-Git-Tag: gnutls_2_1_6~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e4e5de01c2260095a6ab89fe1ebcb3e05f20b11;p=thirdparty%2Fgnutls.git When decompressed data are more than the record max size warn using GNUTLS_E_DECOMPRESSION_FAILED. --- diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c index 50c07825cf..2f7df00144 100644 --- a/lib/gnutls_cipher.c +++ b/lib/gnutls_cipher.c @@ -568,7 +568,7 @@ _gnutls_ciphertext2compressed (gnutls_session_t session, if (compress_size < length) { gnutls_assert (); - return GNUTLS_E_INTERNAL_ERROR; + return GNUTLS_E_DECOMPRESSION_FAILED; } memcpy (compress_data, ciphertext.data, length);