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 &&
Edited by Mark Andrews