mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 07:35:26 +00:00
388. [cleanup] dns_zone_setdbtype now has const char **dbargv.
397. [bug] result was not being set in notify_send_toaddr(). RT#238
This commit is contained in:
5
CHANGES
5
CHANGES
@@ -1,3 +1,8 @@
|
|||||||
|
388. [cleanup] dns_zone_setdbtype now has const char **dbargv.
|
||||||
|
|
||||||
|
397. [bug] result was not being set in notify_send_toaddr().
|
||||||
|
RT#238
|
||||||
|
|
||||||
396. [doc] There is now a man page for "nsupdate"
|
396. [doc] There is now a man page for "nsupdate"
|
||||||
in doc/man/bin/nsupdate.8.
|
in doc/man/bin/nsupdate.8.
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zone.h,v 1.69 2000/08/13 23:51:55 gson Exp $ */
|
/* $Id: zone.h,v 1.70 2000/08/16 02:16:49 marka Exp $ */
|
||||||
|
|
||||||
#ifndef DNS_ZONE_H
|
#ifndef DNS_ZONE_H
|
||||||
#define DNS_ZONE_H 1
|
#define DNS_ZONE_H 1
|
||||||
@@ -271,7 +271,7 @@ dns_zone_getdb(dns_zone_t *zone, dns_db_t **dbp);
|
|||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
dns_zone_setdbtype(dns_zone_t *zone,
|
dns_zone_setdbtype(dns_zone_t *zone,
|
||||||
unsigned int dbargc, char **dbargv);
|
unsigned int dbargc, const char **dbargv);
|
||||||
/*
|
/*
|
||||||
* Sets the database type to dbargv[0] and database arguments
|
* Sets the database type to dbargv[0] and database arguments
|
||||||
* to subsequent dbargv elements.
|
* to subsequent dbargv elements.
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zone.c,v 1.183 2000/08/13 23:51:52 gson Exp $ */
|
/* $Id: zone.c,v 1.184 2000/08/16 02:16:47 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -388,8 +388,7 @@ dns_zone_create(dns_zone_t **zonep, isc_mem_t *mctx) {
|
|||||||
zone->magic = ZONE_MAGIC;
|
zone->magic = ZONE_MAGIC;
|
||||||
|
|
||||||
/* Must be after magic is set. */
|
/* Must be after magic is set. */
|
||||||
result = dns_zone_setdbtype(zone, dbargc_default,
|
result = dns_zone_setdbtype(zone, dbargc_default, dbargv_default);
|
||||||
(char **) dbargv_default);
|
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto free_mutex;
|
goto free_mutex;
|
||||||
|
|
||||||
@@ -538,7 +537,7 @@ zone_freedbargs(dns_zone_t *zone) {
|
|||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
dns_zone_setdbtype(dns_zone_t *zone,
|
dns_zone_setdbtype(dns_zone_t *zone,
|
||||||
unsigned int dbargc, char **dbargv) {
|
unsigned int dbargc, const char **dbargv) {
|
||||||
isc_result_t result = ISC_R_SUCCESS;
|
isc_result_t result = ISC_R_SUCCESS;
|
||||||
char **new = NULL;
|
char **new = NULL;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
@@ -1933,8 +1932,10 @@ notify_send_toaddr(isc_task_t *task, isc_event_t *event) {
|
|||||||
|
|
||||||
dns_zone_iattach(notify->zone, &zone);
|
dns_zone_iattach(notify->zone, &zone);
|
||||||
|
|
||||||
if (DNS_ZONE_FLAG(notify->zone, DNS_ZONEFLG_LOADED) == 0)
|
if (DNS_ZONE_FLAG(notify->zone, DNS_ZONEFLG_LOADED) == 0) {
|
||||||
|
result = ISC_R_CANCELED;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
if ((event->ev_attributes & ISC_EVENTATTR_CANCELED) != 0 ||
|
if ((event->ev_attributes & ISC_EVENTATTR_CANCELED) != 0 ||
|
||||||
DNS_ZONE_FLAG(notify->zone, DNS_ZONEFLG_EXITING)) {
|
DNS_ZONE_FLAG(notify->zone, DNS_ZONEFLG_EXITING)) {
|
||||||
|
Reference in New Issue
Block a user