]> git.ipfire.org Git - thirdparty/bind9.git/commit
Unify how we use isc_refcount_decrement() to destroy object
authorOndřej Surý <ondrej@sury.org>
Thu, 12 Sep 2019 07:49:16 +0000 (09:49 +0200)
committerMark Andrews <marka@isc.org>
Fri, 13 Sep 2019 02:44:49 +0000 (12:44 +1000)
commited494fe29db17d7f7acbe07e436b6bc098c47e13
tree189afecda1279095ed75310ceecc9db22acbfd44
parentc3bcb4d47a9d8ec07a2dd28cc180c20e8f6f7866
Unify how we use isc_refcount_decrement() to destroy object

The isc_refcount_decrement() was either used as:

    if (isc_refcount_decrement() == 1) { destroy(); }

or

    if (isc_refcount_decrement() != 1) { return; } destroy();

This commits eradicates the last usage of the later, so the code is unified to
use the former.
lib/dns/rpz.c