summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-09-11 19:43:10 +0200
committerSimon Josefsson <simon@josefsson.org>2009-09-11 19:43:10 +0200
commit4e60ed0235e413a199d1479e2bc78a9abedbb4d8 (patch)
tree5025caa7e23e438bb505f8cd8b83eebd4358c986
parent709c0ce4f6cf1df5ffc305721cb8ae34bcb61552 (diff)
downloadgnutls-4e60ed0235e413a199d1479e2bc78a9abedbb4d8.tar.gz
Add debug message.
Tiny patch from Miroslav Kratochvil <exa.exa@gmail.com> in <http://thread.gmane.org/gmane.network.gnutls.general/1758>.
-rw-r--r--lib/gnutls_cipher.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c
index 565a0002f0..0d8c5e1da0 100644
--- a/lib/gnutls_cipher.c
+++ b/lib/gnutls_cipher.c
@@ -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.
*/