use a nonce for a PA-TNC message identifier

This commit is contained in:
Andreas Steffen
2012-07-16 18:08:49 +02:00
parent 358dbe4835
commit e51c527e68
4 changed files with 26 additions and 9 deletions
+5 -1
View File
@@ -525,7 +525,11 @@ METHOD(imc_agent_t, send_message, TNC_Result,
enumerator->destroy(enumerator);
/* build and send the PA-TNC message via the IF-IMC interface */
pa_tnc_msg->build(pa_tnc_msg);
if (!pa_tnc_msg->build(pa_tnc_msg))
{
pa_tnc_msg->destroy(pa_tnc_msg);
return TNC_RESULT_FATAL;
}
msg = pa_tnc_msg->get_encoding(pa_tnc_msg);
if (state->has_long(state) && this->send_message_long)