From 542b33c3500da8e6fbb13ce18aac2b2c4dec8ce7 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Fri, 7 Oct 2011 21:01:16 +0200 Subject: [PATCH] combine two algorithm checks --- src/libimcv/plugins/imc_attestation/imc_attestation.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libimcv/plugins/imc_attestation/imc_attestation.c b/src/libimcv/plugins/imc_attestation/imc_attestation.c index 9639c263b..dab132c41 100644 --- a/src/libimcv/plugins/imc_attestation/imc_attestation.c +++ b/src/libimcv/plugins/imc_attestation/imc_attestation.c @@ -98,11 +98,8 @@ TNC_Result TNC_IMC_Initialize(TNC_IMCID imc_id, DBG1(DBG_IMC, "IMC \"%s\" has already been initialized", imc_name); return TNC_RESULT_ALREADY_INITIALIZED; } - if (!pts_meas_probe_algorithms(&supported_algorithms)) - { - return TNC_RESULT_FATAL; - } - if (!pts_probe_dh_groups(&supported_dh_groups)) + if (!pts_meas_probe_algorithms(&supported_algorithms) || + !pts_probe_dh_groups(&supported_dh_groups)) { return TNC_RESULT_FATAL; }