From 66f43e699244cf5597d540e7d9f613b5f207c22e Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Thu, 8 Sep 2011 17:15:20 +0200 Subject: [PATCH] move state change to head of section --- src/libimcv/plugins/imv_attestation/imv_attestation.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libimcv/plugins/imv_attestation/imv_attestation.c b/src/libimcv/plugins/imv_attestation/imv_attestation.c index 2aa9aa4f4..27c20d545 100644 --- a/src/libimcv/plugins/imv_attestation/imv_attestation.c +++ b/src/libimcv/plugins/imv_attestation/imv_attestation.c @@ -242,6 +242,9 @@ static TNC_Result send_message(TNC_ConnectionID connection_id) int id, type; bool is_dir; + attestation_state->set_handshake_state(attestation_state, + IMV_ATTESTATION_STATE_END); + /* Does the PTS-IMC have TPM support? */ if (pts->get_proto_caps(pts) & PTS_PROTO_CAPS_T) { @@ -287,9 +290,6 @@ static TNC_Result send_message(TNC_ConnectionID connection_id) attestation_state->add_request(attestation_state, id , is_dir); } enumerator->destroy(enumerator); - - attestation_state->set_handshake_state(attestation_state, - IMV_ATTESTATION_STATE_END); break; } case IMV_ATTESTATION_STATE_COMP_EVID: