Keep last AR ID

This commit is contained in:
Andreas Steffen 2013-04-21 08:19:30 +02:00
parent bec5bf02ac
commit 6c998b8b9e
1 changed files with 2 additions and 0 deletions

View File

@ -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");
}