summaryrefslogtreecommitdiff
path: root/lib/cipher_int.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-20 14:03:40 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-02-20 18:52:17 +0100
commit944638f77c919baa4c06c8c2ced99dd3e2821514 (patch)
tree419003815e5f25ca818fbbdd26bac1161880084d /lib/cipher_int.c
parentaa78a8c916d62a92d36be861e0433f00452688aa (diff)
downloadgnutls-944638f77c919baa4c06c8c2ced99dd3e2821514.tar.gz
eliminated various clang warnings with non-null arguments
That is, use assert() to ensure that known to be non-null variables will be used as input to functions requiring non-null. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
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 =