From 6e4e6f8da69ea0caef7c00acc4de47d99811efc4 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 8 Jul 2019 16:59:44 +0200 Subject: tests: Fix #ifdef in torture_server_config This should stop detecting it as dead code. CID 1402934 Signed-off-by: Andreas Schneider Reviewed-by: Anderson Toshiyuki Sasaki --- tests/server/torture_server_config.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/server/torture_server_config.c b/tests/server/torture_server_config.c index ac2f2669..89e8de61 100644 --- a/tests/server/torture_server_config.c +++ b/tests/server/torture_server_config.c @@ -430,10 +430,7 @@ static size_t setup_hostkey_files(struct test_server_st *tss) hostkey_files[0] = tss->rsa_hostkey; -#ifndef TEST_ALL_CRYPTO_COMBINATIONS - goto end; -#endif - +#ifdef TEST_ALL_CRYPTO_COMBINATIONS hostkey_files[1] = tss->ecdsa_256_hostkey; hostkey_files[2] = tss->ecdsa_384_hostkey; hostkey_files[3] = tss->ecdsa_521_hostkey; @@ -448,8 +445,8 @@ static size_t setup_hostkey_files(struct test_server_st *tss) num_hostkey_files++; #endif } +#endif /* TEST_ALL_CRYPTO_COMBINATIONS */ -end: return num_hostkey_files; } -- cgit v1.2.3