[4076] in Athena Bugs

home help back first fref pref prev next nref lref last post

[mcsun!sunic!lth.se!newsuser@UUNET.UU.NET: Re: plague of MAXQUERIES exceeded: why&how?]

daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Mon Jan 29 18:24:41 1990

Date: Mon, 29 Jan 90 18:24:26 -0500
From: Mark Rosenstein <mar@MIT.EDU>
To: bugs@MIT.EDU
Is the source code still frozen from the release?  Anyway, here's a
named patch that may fix some minor problems, excerpted from a longer
message on the bind mailing list:

Well I know one error in bind 4.8 (and in 4.8.1) that can give this
responce and I reposter it to the bind mailing list long ago.

Check in ns_resp.c at about line 633
There is a part setting the recursive flag for a query.
The code should look like:
                qp->q_msglen = res_mkquery(QUERY, dname, class,
                    type, (char *)NULL, 0, NULL, qp->q_msg, BUFSIZ);
                hp = (HEADER *) qp->q_msg;
                hp->rd = 0;
        } else {
                hp = (HEADER *)qp->q_msg;
                hp->rd = (qp->q_fwd ? 1 : 0);
        }
        hp->id = qp->q_nsid = htons((u_short)++nsid);
        unsched(qp);
        schedretry(qp, retrytime(qp));
----
It is the part after the else above, that is changed.

home help back first fref pref prev next nref lref last post