summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/bin/named/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bind/bin/named/client.c')
-rw-r--r--usr.sbin/bind/bin/named/client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/bind/bin/named/client.c b/usr.sbin/bind/bin/named/client.c
index 6b9695f8718..0a73e2d0ab1 100644
--- a/usr.sbin/bind/bin/named/client.c
+++ b/usr.sbin/bind/bin/named/client.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1999-2002 Internet Software Consortium.
+ * Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $ISC: client.c,v 1.176.2.11 2002/04/23 01:53:53 marka Exp $ */
+/* $ISC: client.c,v 1.176.2.11.4.2 2003/02/17 07:05:04 marka Exp $ */
#include <config.h>
@@ -1014,7 +1014,11 @@ client_addopt(ns_client_t *client) {
/*
* Set EXTENDED-RCODE, VERSION, and Z to 0.
*/
+#ifdef ISC_RFC2535
rdatalist->ttl = (client->extflags & DNS_MESSAGEEXTFLAG_REPLYPRESERVE);
+#else
+ rdatalist->ttl = 0;
+#endif
/*
* No ENDS options in the default case.