]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Add debug message.
authorSimon Josefsson <simon@josefsson.org>
Fri, 11 Sep 2009 17:43:10 +0000 (19:43 +0200)
committerSimon Josefsson <simon@josefsson.org>
Fri, 11 Sep 2009 17:43:10 +0000 (19:43 +0200)
Tiny patch from Miroslav Kratochvil <exa.exa@gmail.com> in
<http://thread.gmane.org/gmane.network.gnutls.general/1758>.

lib/gnutls_cipher.c

index 565a0002f0e89bb05f08a1c0e9b522159d40d7c4..0d8c5e1da0ffbacb8acecdd76b320c32385b639b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008 Free Software Foundation
+ * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009 Free Software Foundation
  *
  * Author: Nikos Mavrogiannopoulos
  *
@@ -571,7 +571,10 @@ _gnutls_ciphertext2compressed (gnutls_session_t session,
    * 1.0 protocol.
    */
   if (pad_failed != 0)
-    return pad_failed;
+    {
+      gnutls_assert ();
+      return pad_failed;
+    }
 
   /* HMAC was not the same. 
    */