zonemd, review comments, stop callback for a deleted zone.

This commit is contained in:
W.C.A. Wijngaards 2021-02-11 17:27:59 +01:00
parent d3b6e1679c
commit e0f17c2443

View file

@ -8070,7 +8070,7 @@ void auth_zonemd_dnskey_lookup_callback(void* arg, int rcode, sldns_buffer* buf,
/* release the env variable so another worker can pick up the
* ZONEMD verification task if it wants to */
z->zonemd_callback_env = NULL;
if(!env || env->outnet->want_to_quit) {
if(!env || env->outnet->want_to_quit || z->zone_deleted) {
lock_rw_unlock(&z->lock);
return; /* stop on quit */
}