]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
LOCK should be UNLOCK
authorMark Andrews <marka@isc.org>
Wed, 9 Sep 2020 05:28:57 +0000 (15:28 +1000)
committerMark Andrews <marka@isc.org>
Wed, 9 Sep 2020 05:28:57 +0000 (15:28 +1000)
*** CID 306731:  Program hangs  (LOCK)
/lib/dns/resolver.c: 8943 in spillattimer_countdown()
8937      result = isc_timer_reset(res->spillattimer,
8938       isc_timertype_inactive, NULL,
8939       NULL, true);
8940      RUNTIME_CHECK(result == ISC_R_SUCCESS);
8941      }
8942      count = res->spillat;
   CID 306731:  Program hangs  (LOCK)
   "pthread_mutex_lock" locks "res->spill_lock" while it is locked.
8943      LOCK(&res->spill_lock);
8944      UNLOCK(&res->lock);
8945      if (logit)
8946      isc_log_write(dns_lctx, DNS_LOGCATEGORY_RESOLVER,
8947            DNS_LOGMODULE_RESOLVER, ISC_LOG_NOTICE,
8948            "clients-per-query decreased to %u", count);

lib/dns/resolver.c

index 5984e00ab8c68295851b91e497abd5452923b976..ecac678192eb97013fac1811875ff7cba2fa501a 100644 (file)
@@ -8940,7 +8940,7 @@ spillattimer_countdown(isc_task_t *task, isc_event_t *event) {
                RUNTIME_CHECK(result == ISC_R_SUCCESS);
        }
        count = res->spillat;
-       LOCK(&res->spill_lock);
+       UNLOCK(&res->spill_lock);
        UNLOCK(&res->lock);
        if (logit)
                isc_log_write(dns_lctx, DNS_LOGCATEGORY_RESOLVER,