1345. [bug] If the tcpquota was exhausted it was possible to

to trigger a INSIST() failure.
This commit is contained in:
Mark Andrews 2002-07-09 02:41:36 +00:00
parent 69ee6250c9
commit 475fe52dc3
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
1345. [bug] If the tcpquota was exhausted it was possible to
to trigger a INSIST() failure.
1344. [port] darwin: ifconfig.sh now supports darwin.
1343. [port] linux: Slackware 4.0 needs <asm/unistd.h>. [RT #3205]

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: query.c,v 1.221 2002/06/25 04:12:51 marka Exp $ */
/* $Id: query.c,v 1.222 2002/07/09 02:41:36 marka Exp $ */
#include <config.h>
@ -2198,7 +2198,7 @@ query_recurse(ns_client_t *client, dns_rdatatype_t qtype, dns_name_t *qdomain,
* because those have already been replaced when the
* connection was accepted (if allowed by the TCP quota).
*/
if (! client->mortal) {
if (! client->mortal && client->recursionquota == NULL) {
isc_boolean_t killoldest = ISC_FALSE;
result = isc_quota_attach(&ns_g_server->recursionquota,
&client->recursionquota);