aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpts
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2012-09-10 00:07:54 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2012-09-10 00:07:54 +0200
commit32e30f15cb02e5d654d3e44e0c085376cf7f2aac (patch)
tree9bda6223d7e7b984220e26d8aeee8ce9398a1ece /src/libpts
parent3b51f34040298209131c36e176d88ce882c93b97 (diff)
downloadstrongswan-32e30f15cb02e5d654d3e44e0c085376cf7f2aac.tar.bz2
strongswan-32e30f15cb02e5d654d3e44e0c085376cf7f2aac.tar.xz
use base IMC ID if src IMC ID is not supported
Diffstat (limited to 'src/libpts')
-rw-r--r--src/libpts/plugins/imc_attestation/imc_attestation.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libpts/plugins/imc_attestation/imc_attestation.c b/src/libpts/plugins/imc_attestation/imc_attestation.c
index c3df27866..7cb2a0671 100644
--- a/src/libpts/plugins/imc_attestation/imc_attestation.c
+++ b/src/libpts/plugins/imc_attestation/imc_attestation.c
@@ -189,6 +189,7 @@ static TNC_Result receive_message(TNC_IMCID imc_id,
imc_attestation_state_t *attestation_state;
enumerator_t *enumerator;
TNC_Result result;
+ TNC_UInt32 target_imc_id;
if (!imc_attestation)
{
@@ -212,6 +213,7 @@ static TNC_Result receive_message(TNC_IMCID imc_id,
{
return result;
}
+ target_imc_id = (dst_imc_id == TNC_IMCID_ANY) ? imc_id : dst_imc_id;
/* preprocess any IETF standard error attributes */
result = pa_tnc_msg->process_ietf_std_errors(pa_tnc_msg) ?
@@ -252,7 +254,7 @@ static TNC_Result receive_message(TNC_IMCID imc_id,
ietf_attr_assess_result_t *ietf_attr;
ietf_attr = (ietf_attr_assess_result_t*)attr;
- state->set_result(state, dst_imc_id,
+ state->set_result(state, target_imc_id,
ietf_attr->get_result(ietf_attr));
}
}