diff --git a/lib/dns/zone.c b/lib/dns/zone.c index d97491c61f..9706d9e2b2 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15943,8 +15943,8 @@ zone_loaddone(void *arg, isc_result_t result) { LOCK_ZONE(zone->raw); else if (inline_raw(zone)) { secure = zone->secure; - TRYLOCK_ZONE(result, secure); - if (result != ISC_R_SUCCESS) { + TRYLOCK_ZONE(tresult, secure); + if (tresult != ISC_R_SUCCESS) { UNLOCK_ZONE(zone); secure = NULL; isc_thread_yield();