nts: destroy NTS-KE client right after failed start

When NKC_Start() fails (e.g. due to unreachable network), don't wait for
the next poll to destroy the client and another poll to create and start
it again.
This commit is contained in:
Miroslav Lichvar 2023-02-23 14:58:29 +01:00
parent 1eb8994c00
commit a1406eded3

View file

@ -239,10 +239,9 @@ get_cookies(NNC_Instance inst)
inst->nke = NKC_CreateInstance(&inst->nts_address, inst->name, inst->cert_set);
inst->nke_attempts++;
update_next_nke_attempt(inst, now);
if (!NKC_Start(inst->nke))
return 0;
;
}
update_next_nke_attempt(inst, now);