summaryrefslogtreecommitdiff
path: root/lib/cipher_int.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cipher_int.c')
-rw-r--r--lib/cipher_int.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cipher_int.c b/lib/cipher_int.c
index 46ce30b6c8..bc5ba38dec 100644
--- a/lib/cipher_int.c
+++ b/lib/cipher_int.c
@@ -305,6 +305,7 @@ int _gnutls_auth_cipher_encrypt2_tag(auth_cipher_hd_st * handle,
ciphertextlen)
return gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR);
+ assert(blocksize != 0);
l = (textlen / blocksize) * blocksize;
if (l > 0) {
ret =