move state change to head of section

This commit is contained in:
Andreas Steffen
2011-09-08 17:15:20 +02:00
parent 3ed943c34f
commit 66f43e6992
@@ -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: