summaryrefslogtreecommitdiff
path: root/lib/gnutls_cipher.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-12-29 21:51:47 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-12-29 21:51:47 +0000
commitfcd74a11533b27defb5f94f69f8d52feaab1cab7 (patch)
treefc19c2032478475722ebcc2cd83ca7bff740a162 /lib/gnutls_cipher.c
parente97ac6044e4ce5140be60a1a7148c6842bdb3567 (diff)
downloadgnutls-fcd74a11533b27defb5f94f69f8d52feaab1cab7.tar.gz
*** empty log message ***
Diffstat (limited to 'lib/gnutls_cipher.c')
-rw-r--r--lib/gnutls_cipher.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c
index b5e58c7928..2d19e0fb82 100644
--- a/lib/gnutls_cipher.c
+++ b/lib/gnutls_cipher.c
@@ -338,9 +338,11 @@ int _gnutls_compressed2ciphertext(gnutls_session session,
/* Actual encryption (inplace).
*/
- if ( (ret = _gnutls_cipher_encrypt(session->connection_state.
+ ret = _gnutls_cipher_encrypt(session->connection_state.
write_cipher_state, cipher_data,
- length)) < 0) {
+ length);
+ if (ret < 0) {
+ gnutls_assert();
return ret;
}