]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use ns_g_server->recursionquota instead of client->recursionquota
authorMark Andrews <marka@isc.org>
Wed, 9 Sep 2020 05:49:11 +0000 (15:49 +1000)
committerMark Andrews <marka@isc.org>
Wed, 9 Sep 2020 06:01:54 +0000 (06:01 +0000)
commited0cb2e9e420e2f4b5e03401a0cb50454e080144
treeae43de3452ae98035b528e8ef1e02b6ed51946bd
parent1e1ecce60577fc1790f4112919d6806699e7f1ec
Use ns_g_server->recursionquota instead of client->recursionquota

as the later will be NULL on ISC_R_QUOTA.

*** CID 306732:  Null pointer dereferences  (FORWARD_NULL)
/bin/named/query.c: 4359 in query_recurse()
4353      static _Atomic(isc_stdtime_t) last = 0;
4354     #else
4355      static isc_stdtime_t last = 0;
4356     #endif
4357      isc_stdtime_t now;
4358      isc_stdtime_get(&now);
   CID 306732:  Null pointer dereferences  (FORWARD_NULL)
   Passing "client" to "log_quota", which dereferences null "client->recursionquota".
4359      log_quota(client, &last, now,
4360        "no more recursive clients (%d/%d/%d): %s",
4361        isc_result_totext(result));
4362      ns_client_killoldestquery(client);
4363      }
4364      if (result == ISC_R_SUCCESS && !client->mortal &&

** CID 306731:  Program hangs  (LOCK)
/lib/dns/resolver.c: 8943 in spillattimer_countdown()
bin/named/query.c