aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2013-04-21 08:19:30 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2013-04-21 08:19:30 +0200
commit6c998b8b9e1cfb67c00d406aff5b74625ffef10d (patch)
treec91a73b071c56b47098a9f46ea0ddc9bff6e8c9d /src
parentbec5bf02accd8f492d0c093b0801117420f6da30 (diff)
downloadstrongswan-6c998b8b9e1cfb67c00d406aff5b74625ffef10d.tar.bz2
strongswan-6c998b8b9e1cfb67c00d406aff5b74625ffef10d.tar.xz
Keep last AR ID
Diffstat (limited to 'src')
-rw-r--r--src/libpts/plugins/imv_attestation/attest_db.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libpts/plugins/imv_attestation/attest_db.c b/src/libpts/plugins/imv_attestation/attest_db.c
index 81445acbf..9d49a2742 100644
--- a/src/libpts/plugins/imv_attestation/attest_db.c
+++ b/src/libpts/plugins/imv_attestation/attest_db.c
@@ -847,6 +847,7 @@ METHOD(attest_db_t, list_devices, void,
if (e_ar)
{
e_ar->enumerate(e_ar, &ar_id_type, &ar_id_value);
+ ar_id_value = chunk_clone(ar_id_value);
e_ar->destroy(e_ar);
}
}
@@ -854,6 +855,7 @@ METHOD(attest_db_t, list_devices, void,
{
printf(" %.*s", (int)ar_id_value.len, ar_id_value.ptr);
}
+ last_ar_id = ar_id;
}
printf("\n");
}