]> git.proxmox.com Git - mirror_kronosnet.git/commitdiff
EVP_CIPHER_block_size returns size_t, which is unsigned
authorFerenc Wágner <wferi@debian.org>
Sun, 21 Jan 2018 22:26:50 +0000 (23:26 +0100)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Tue, 30 Jan 2018 04:21:51 +0000 (05:21 +0100)
libknet/crypto_openssl.c

index a82ce87ecb92408a14010e5ed362194cb6f45535..13e2d8f43200d940de1976e66d4f24e8b91fd25c 100644 (file)
@@ -577,12 +577,9 @@ static int opensslcrypto_init(
        }
 
        if (opensslcrypto_instance->crypto_cipher_type) {
-               int block_size;
+               size_t block_size;
 
                block_size = EVP_CIPHER_block_size(opensslcrypto_instance->crypto_cipher_type);
-               if (block_size < 0) {
-                       goto out_err;
-               }
 
                knet_h->sec_header_size += (block_size * 2);
                knet_h->sec_header_size += SALT_SIZE;