From e71446c84ab7821c55e0ea174d3d114e274fd004 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Tue, 19 Mar 2019 16:20:11 +0100 Subject: [PATCH] ta_update: abort update if keyset is no longer managed --- modules/ta_update/ta_update.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ta_update/ta_update.lua b/modules/ta_update/ta_update.lua index 4792f85ad..4c0b47624 100644 --- a/modules/ta_update/ta_update.lua +++ b/modules/ta_update/ta_update.lua @@ -136,6 +136,10 @@ end -- Update existing keyset; return true if successful. local function update(keyset, new_keys) if not new_keys then return false end + if not keyset.managed then + -- this may happen due to race condition during testing in CI (refesh time < query time) + return false + end -- Filter TAs to be purged from the keyset (KeyRem), in three steps -- 1: copy TAs to be kept to `keepset` -- 2.47.3