aboutsummaryrefslogtreecommitdiffstats
path: root/src/libimcv/imc
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2012-07-16 18:08:49 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2012-07-16 18:08:49 +0200
commite51c527e68bc59d5df249236ba3ee1b462d5a3e9 (patch)
treeac52dfe658643d9093d4f25632193f3303dae64a /src/libimcv/imc
parent358dbe483515981579b25b1bf6503cc84c7907f0 (diff)
downloadstrongswan-e51c527e68bc59d5df249236ba3ee1b462d5a3e9.tar.bz2
strongswan-e51c527e68bc59d5df249236ba3ee1b462d5a3e9.tar.xz
use a nonce for a PA-TNC message identifier
Diffstat (limited to 'src/libimcv/imc')
-rw-r--r--src/libimcv/imc/imc_agent.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libimcv/imc/imc_agent.c b/src/libimcv/imc/imc_agent.c
index 661c3c77f..8d1e70716 100644
--- a/src/libimcv/imc/imc_agent.c
+++ b/src/libimcv/imc/imc_agent.c
@@ -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)