mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
515. [bug] The ssu table was not beinge attached / detached
by dns_zone_[sg]etssutable. [RT#397]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
515. [bug] The ssu table was not beinge attached / detached
|
||||||
|
by dns_zone_[sg]etssutable. [RT#397]
|
||||||
|
|
||||||
514. [func] Retry refresh and notify queries if they timeout.
|
514. [func] Retry refresh and notify queries if they timeout.
|
||||||
[RT #388]
|
[RT #388]
|
||||||
|
|
||||||
|
@@ -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.79 2000/10/12 21:51:58 mws Exp $ */
|
/* $Id: zone.h,v 1.80 2000/10/13 13:45:45 marka Exp $ */
|
||||||
|
|
||||||
#ifndef DNS_ZONE_H
|
#ifndef DNS_ZONE_H
|
||||||
#define DNS_ZONE_H 1
|
#define DNS_ZONE_H 1
|
||||||
@@ -920,7 +920,7 @@ dns_zone_setidleout(dns_zone_t *zone, isc_uint32_t idleout);
|
|||||||
void
|
void
|
||||||
dns_zone_getssutable(dns_zone_t *zone, dns_ssutable_t **table);
|
dns_zone_getssutable(dns_zone_t *zone, dns_ssutable_t **table);
|
||||||
/*
|
/*
|
||||||
* Set the simple-secure-update policy table.
|
* Get the simple-secure-update policy table.
|
||||||
*
|
*
|
||||||
* Requires:
|
* Requires:
|
||||||
* 'zone' to be a valid zone.
|
* 'zone' to be a valid zone.
|
||||||
@@ -929,7 +929,7 @@ dns_zone_getssutable(dns_zone_t *zone, dns_ssutable_t **table);
|
|||||||
void
|
void
|
||||||
dns_zone_setssutable(dns_zone_t *zone, dns_ssutable_t *table);
|
dns_zone_setssutable(dns_zone_t *zone, dns_ssutable_t *table);
|
||||||
/*
|
/*
|
||||||
* Get the simple-secure-update policy table.
|
* Set / clear the simple-secure-update policy table.
|
||||||
*
|
*
|
||||||
* Requires:
|
* Requires:
|
||||||
* 'zone' to be a valid zone.
|
* 'zone' to be a valid zone.
|
||||||
|
@@ -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.231 2000/10/13 13:23:09 marka Exp $ */
|
/* $Id: zone.c,v 1.232 2000/10/13 13:45:43 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -4474,14 +4474,23 @@ dns_zone_getssutable(dns_zone_t *zone, dns_ssutable_t **table) {
|
|||||||
REQUIRE(DNS_ZONE_VALID(zone));
|
REQUIRE(DNS_ZONE_VALID(zone));
|
||||||
REQUIRE(table != NULL);
|
REQUIRE(table != NULL);
|
||||||
REQUIRE(*table == NULL);
|
REQUIRE(*table == NULL);
|
||||||
*table = zone->ssutable;
|
|
||||||
|
LOCK(&zone->lock);
|
||||||
|
if (zone->ssutable != NULL)
|
||||||
|
dns_ssutable_attach(zone->ssutable, table);
|
||||||
|
UNLOCK(&zone->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
dns_zone_setssutable(dns_zone_t *zone, dns_ssutable_t *table) {
|
dns_zone_setssutable(dns_zone_t *zone, dns_ssutable_t *table) {
|
||||||
REQUIRE(DNS_ZONE_VALID(zone));
|
REQUIRE(DNS_ZONE_VALID(zone));
|
||||||
REQUIRE(table != NULL);
|
|
||||||
zone->ssutable = table;
|
LOCK(&zone->lock);
|
||||||
|
if (zone->ssutable != NULL)
|
||||||
|
dns_ssutable_detach(&zone->ssutable);
|
||||||
|
if (table != NULL)
|
||||||
|
dns_ssutable_attach(table, &zone->ssutable);
|
||||||
|
UNLOCK(&zone->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user