mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 10:12:09 -04:00
928. [bug] nsupdate would send empty update packets if the
send (or empty line) command was run after
another send but before any new updates or
prerequisites were specified. It should simply
ignore this command.
This commit is contained in:
parent
37aa910318
commit
bd6504aa9a
2 changed files with 19 additions and 6 deletions
7
CHANGES
7
CHANGES
|
|
@ -1,3 +1,10 @@
|
|||
|
||||
928. [bug] nsupdate would send empty update packets if the
|
||||
send (or empty line) command was run after
|
||||
another send but before any new updates or
|
||||
prerequisites were specified. It should simply
|
||||
ignore this command.
|
||||
|
||||
927. [bug] Don't hold the zone lock for the entire dump to disk.
|
||||
[RT #1423]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsupdate.c,v 1.96 2001/07/02 18:56:58 gson Exp $ */
|
||||
/* $Id: nsupdate.c,v 1.97 2001/07/11 06:30:54 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -1753,17 +1753,23 @@ start_update(void) {
|
|||
|
||||
ddebug("start_update()");
|
||||
|
||||
if (userzone != NULL && userserver != NULL) {
|
||||
send_update(userzone, userserver, localaddr);
|
||||
return;
|
||||
}
|
||||
|
||||
result = dns_message_firstname(updatemsg, DNS_SECTION_UPDATE);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
done_update();
|
||||
return;
|
||||
}
|
||||
|
||||
result = dns_message_firstname(updatemsg, DNS_SECTION_PREREQUISITE);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
done_update();
|
||||
return;
|
||||
}
|
||||
|
||||
if (userzone != NULL && userserver != NULL) {
|
||||
send_update(userzone, userserver, localaddr);
|
||||
return;
|
||||
}
|
||||
|
||||
result = dns_message_create(mctx, DNS_MESSAGE_INTENTRENDER,
|
||||
&soaquery);
|
||||
check_result(result, "dns_message_create");
|
||||
|
|
|
|||
Loading…
Reference in a new issue