]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - ssl/ssl_ciph.c
Add appropriate NULL checks in EVP_CIPHER api
[thirdparty/openssl.git] / ssl / ssl_ciph.c
index 31c0d5af1dd57f3526bef89f6dce2159f21ebf95..6e49d6b40079a0cba81d3b546217e33cc40e7235 100644 (file)
@@ -2221,6 +2221,8 @@ int ssl_cipher_get_overhead(const SSL_CIPHER *c, size_t *mac_overhead,
             in = 1; /* padding length byte */
             out = EVP_CIPHER_get_iv_length(e_ciph);
             blk = EVP_CIPHER_get_block_size(e_ciph);
+            if (blk == 0)
+                return 0;
         }
     }