diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-29 21:51:47 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-29 21:51:47 +0000 |
commit | fcd74a11533b27defb5f94f69f8d52feaab1cab7 (patch) | |
tree | fc19c2032478475722ebcc2cd83ca7bff740a162 /lib/gnutls_cipher.c | |
parent | e97ac6044e4ce5140be60a1a7148c6842bdb3567 (diff) | |
download | gnutls-fcd74a11533b27defb5f94f69f8d52feaab1cab7.tar.gz |
*** empty log message ***
Diffstat (limited to 'lib/gnutls_cipher.c')
-rw-r--r-- | lib/gnutls_cipher.c | 6 |
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; } |