]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
When decompressed data are more than the record max size warn using
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 13 Nov 2007 19:55:48 +0000 (21:55 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 13 Nov 2007 19:55:48 +0000 (21:55 +0200)
GNUTLS_E_DECOMPRESSION_FAILED.

lib/gnutls_cipher.c

index 50c07825cfbf09e1198f4a3a7205b5d86fd55738..2f7df0014488ba79cc0a2cbd8733bcc949f620cb 100644 (file)
@@ -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);