2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 21:47:59 +00:00

more DNS_OPT_NEWCODES sanitation

This commit is contained in:
Andreas Gustafsson 2000-12-02 05:57:16 +00:00
parent f1b2bd266e
commit 4104b26dd7

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: client.c,v 1.134 2000/12/02 04:30:08 gson Exp $ */
/* $Id: client.c,v 1.135 2000/12/02 05:57:16 gson Exp $ */
#include <config.h>
@ -1245,12 +1245,12 @@ client_request(isc_task_t *task, isc_event_t *event) {
*/
client->udpsize = opt->rdclass;
#ifdef DNS_OPT_NEWCODES
/*
* Get the flags out of the OPT record.
*/
client->extflags = DNS_OPT_FLAGS(opt);
#ifdef DNS_OPT_NEWCODES
/*
* Set up the rest of the opt stuff
*/
@ -1261,6 +1261,11 @@ client_request(isc_task_t *task, isc_event_t *event) {
*/
if (client->opt_zone != NULL)
client->query.dboptions |= DNS_DBFIND_GLUEOK;
#else /* DNS_OPT_NEWCODES */
/*
* Get the flags out of the OPT record.
*/
client->extflags = opt->ttl & 0xFFFF;
#endif /* DNS_OPT_NEWCODES */
/*