From 27d87d32441e717b1b3b1569620d19a4677c9fbb Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 13 Apr 2021 15:56:41 -0700 Subject: [PATCH] tls: fix coverity warning Type: fix Avoid complaint that we're potentially incrementing ii which could be null. Signed-off-by: Florin Coras Change-Id: I8511c07b1c2f260cc0e526d9aefeb4a051d98edf --- src/plugins/tlsopenssl/tls_async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/tlsopenssl/tls_async.c b/src/plugins/tlsopenssl/tls_async.c index 49987baef16..89b4f77e331 100644 --- a/src/plugins/tlsopenssl/tls_async.c +++ b/src/plugins/tlsopenssl/tls_async.c @@ -417,7 +417,7 @@ openssl_async_node_enable_disable (u8 is_en) foreach_vlib_main () { - if (have_workers && ii != 0) + if (have_workers && this_vlib_main->thread_index) { vlib_node_set_state (this_vlib_main, tls_async_process_node.index, state); -- 2.16.6