1270. [func] Nsupdate will report the address the update was

sent to.
This commit is contained in:
Mark Andrews
2002-04-18 00:22:17 +00:00
parent 984c39beed
commit 15f358ed4e
2 changed files with 10 additions and 1 deletions
+3
View File
@@ -1,3 +1,6 @@
1270. [func] Nsupdate will report the address the update was
sent to.
1269. [bug] Missing masters clause was not handled gracefully.
[RT #2703]
+7 -1
View File
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: nsupdate.c,v 1.117 2002/02/20 03:33:37 marka Exp $ */
/* $Id: nsupdate.c,v 1.118 2002/04/18 00:22:17 marka Exp $ */
#include <config.h>
@@ -1465,6 +1465,12 @@ send_update(dns_name_t *zonename, isc_sockaddr_t *master,
result = dns_message_setsig0key(updatemsg, sig0key);
check_result(result, "dns_message_setsig0key");
}
if (debugging) {
char addrbuf[ISC_SOCKADDR_FORMATSIZE];
isc_sockaddr_format(master, addrbuf, sizeof(addrbuf));
fprintf(stderr, "Sending update to %s\n", addrbuf);
}
result = dns_request_createvia(requestmgr, updatemsg, srcaddr,
master, options, tsigkey,
FIND_TIMEOUT, global_task,