2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

[master] Fix master address failover when GSS-API is used

4680.	[bug]		Fix failing over to another master server address when
			nsupdate is used with GSS-API. [RT #45380]
This commit is contained in:
Michał Kępień
2017-06-14 13:09:26 +02:00
parent 877c264edc
commit b55ec74eaa
2 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
4680. [bug] Fix failing over to another master server address when
nsupdate is used with GSS-API. [RT #45380]
4679. [cleanup] Suggest using -o when dnssec-verify finds a SOA record
not at top of zone and -o is not used. [RT #45519]

View File

@@ -2950,11 +2950,17 @@ recvgss(isc_task_t *task, isc_event_t *event) {
}
if (eresult != ISC_R_SUCCESS) {
next_master("recvgss", addr, eresult);
ddebug("Destroying request [%p]", request);
dns_request_destroy(&request);
if (!next_master("recvgss", addr, eresult)) {
dns_message_destroy(&tsigquery);
failed_gssrequest();
} else {
dns_message_renderreset(tsigquery);
sendrequest(&master_servers[master_inuse], tsigquery, &request);
memmove(kserver, &master_servers[master_inuse],
sizeof(isc_sockaddr_t));
send_gssrequest(kserver, tsigquery, &request, context);
}
isc_mem_put(gmctx, reqinfo, sizeof(nsu_gssinfo_t));
isc_event_free(&event);
return;