15912313 nslookup return value breaks Oracle DB for RAC install
authortomas.jedlicka <tomas.jedlicka@oracle.com>
Fri, 21 Dec 2012 12:13:01 +0100
changeset 1092 7c07ade6305a
parent 1091 ce8b381f34b6
child 1093 6d35b70277bd
15912313 nslookup return value breaks Oracle DB for RAC install
components/bind/patches/15912313.nslookup-revert.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/bind/patches/15912313.nslookup-revert.patch	Fri Dec 21 12:13:01 2012 +0100
@@ -0,0 +1,37 @@
+--- a/bin/dig/nslookup.c	Fri Dec 21 12:02:39 2012
++++ b/bin/dig/nslookup.c	Fri Dec 21 12:03:43 2012
[email protected]@ -57,7 +57,6 @@
+ static char defclass[MXRD] = "IN";
+ static char deftype[MXRD] = "A";
+ static isc_event_t *global_event = NULL;
+-static int query_error = 1, print_error = 0;
+ 
+ static char domainopt[DNS_NAME_MAXTEXT];
+ 
[email protected]@ -407,9 +406,6 @@
+ printmessage(dig_query_t *query, dns_message_t *msg, isc_boolean_t headers) {
+ 	char servtext[ISC_SOCKADDR_FORMATSIZE];
+ 
+-	/* I've we've gotten this far, we've reached a server. */
+-	query_error = 0;
+-
+ 	debug("printmessage()");
+ 
+ 	isc_sockaddr_format(&query->sockaddr, servtext, sizeof(servtext));
[email protected]@ -437,9 +433,6 @@
+ 		       (msg->rcode != dns_rcode_nxdomain) ? nametext :
+ 		       query->lookup->textname, rcode_totext(msg->rcode));
+ 		debug("returning with rcode == 0");
+-
+-		/* the lookup failed */
+-		print_error |= 1;
+ 		return (ISC_R_SUCCESS);
+ 	}
+ 
[email protected]@ -910,5 +903,5 @@
+ 	destroy_libs();
+ 	isc_app_finish();
+ 
+-	return (query_error | print_error);
++	return (0);
+ }