1540. [bug] "rndc reload <dynamiczone>" was silently accepted.

[RT #8934]
This commit is contained in:
Mark Andrews 2004-03-02 02:36:54 +00:00
parent 6bd0e050ee
commit a8cd8a9da9
5 changed files with 17 additions and 8 deletions

View file

@ -77,6 +77,9 @@
bind to the specified transfer source and TSIG was
being used. [RT #10120]
1540. [bug] "rndc reload <dynamiczone>" was silently accepted.
[RT #8934]
1539. [bug] Open UDP sockets for notify-source and transfer-source
that use reserved ports at startup. [RT #9475]

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: result.h,v 1.81.2.7.2.7 2004/02/27 21:45:25 marka Exp $ */
/* $Id: result.h,v 1.81.2.7.2.8 2004/03/02 02:36:54 marka Exp $ */
#ifndef DNS_RESULT_H
#define DNS_RESULT_H 1
@ -137,8 +137,9 @@
#define DNS_R_FROMWILDCARD (ISC_RESULTCLASS_DNS + 95)
#define DNS_R_BADOWNERNAME (ISC_RESULTCLASS_DNS + 96)
#define DNS_R_BADNAME (ISC_RESULTCLASS_DNS + 97)
#define DNS_R_DYNAMIC (ISC_RESULTCLASS_DNS + 98)
#define DNS_R_NRESULTS 98 /* Number of results */
#define DNS_R_NRESULTS 99 /* Number of results */
/*
* DNS wire format rcodes.

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: result.c,v 1.90.2.9.2.7 2004/02/27 21:45:22 marka Exp $ */
/* $Id: result.c,v 1.90.2.9.2.8 2004/03/02 02:36:53 marka Exp $ */
#include <config.h>
@ -146,7 +146,8 @@ static const char *text[DNS_R_NRESULTS] = {
"from wildcard", /* 95 DNS_R_FROMWILDCARD */
"bad owner name (check-names)", /* 96 DNS_R_BADOWNERNAME */
"bad name (check-names)" /* 97 DNS_R_BADNAME */
"bad name (check-names)", /* 97 DNS_R_BADNAME */
"dynamic zone" /* 98 DNS_R_DYNAMIC */
};
static const char *rcode_text[DNS_R_NRCODERESULTS] = {

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.333.2.23.2.38 2004/03/02 01:20:42 marka Exp $ */
/* $Id: zone.c,v 1.333.2.23.2.39 2004/03/02 02:36:53 marka Exp $ */
#include <config.h>
@ -970,7 +970,10 @@ zone_load(dns_zone_t *zone, unsigned int flags) {
* zone being reloaded. Do nothing - the database
* we already have is guaranteed to be up-to-date.
*/
result = ISC_R_SUCCESS;
if (zone->type == dns_zone_master)
result = DNS_R_DYNAMIC;
else
result = ISC_R_SUCCESS;
goto cleanup;
}

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zt.c,v 1.33.12.2 2003/09/11 00:18:08 marka Exp $ */
/* $Id: zt.c,v 1.33.12.3 2004/03/02 02:36:54 marka Exp $ */
#include <config.h>
@ -259,7 +259,8 @@ loadnew(dns_zone_t *zone, void *uap) {
isc_result_t result;
UNUSED(uap);
result = dns_zone_loadnew(zone);
if (result == DNS_R_CONTINUE || result == DNS_R_UPTODATE)
if (result == DNS_R_CONTINUE || result == DNS_R_UPTODATE ||
result == DNS_R_DYNAMIC)
result = ISC_R_SUCCESS;
return (result);
}