vcl: fix coverity warning
Change-Id: I08b0244ba8b0e8a463224b39e1f7b878ba8e4e6f
Signed-off-by: Florin Coras <fcoras@cisco.com>
diff --git a/src/vcl/vcl_test_client.c b/src/vcl/vcl_test_client.c
index c92f0cb..cd92ed8 100644
--- a/src/vcl/vcl_test_client.c
+++ b/src/vcl/vcl_test_client.c
@@ -400,7 +400,7 @@
}
exit:
vtinf ("Worker %d done ...", wrk->wrk_index);
- if (tsock->cfg.test != SOCK_TEST_TYPE_ECHO)
+ if (wrk->cfg.test != SOCK_TEST_TYPE_ECHO)
vtc_accumulate_stats (wrk, ctrl);
sleep (1);
vtc_worker_sessions_exit (wrk);