mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 20:25:55 -04:00
Merge branch '4054-zone_resigninc-bugfix-9.18' into 'bind-9.18'
[9.18] zone_resigninc(): check whether zone->db is a valid pointer before attaching See merge request isc-projects/bind9!7923
This commit is contained in:
commit
52844fa8c7
2 changed files with 10 additions and 1 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
6169. [bug] named could crash when deleting inline-signing zones
|
||||
with "rndc delzone". [GL #4054]
|
||||
|
||||
6165. [bug] Fix a logic error in dighost.c which could call the
|
||||
dighost_shutdown() callback twice and cause problems
|
||||
if the callback function was not idempotent. [GL #4039]
|
||||
|
|
|
|||
|
|
@ -7220,8 +7220,14 @@ zone_resigninc(dns_zone_t *zone) {
|
|||
}
|
||||
|
||||
ZONEDB_LOCK(&zone->dblock, isc_rwlocktype_read);
|
||||
dns_db_attach(zone->db, &db);
|
||||
if (zone->db != NULL) {
|
||||
dns_db_attach(zone->db, &db);
|
||||
}
|
||||
ZONEDB_UNLOCK(&zone->dblock, isc_rwlocktype_read);
|
||||
if (db == NULL) {
|
||||
result = ISC_R_FAILURE;
|
||||
goto failure;
|
||||
}
|
||||
|
||||
result = dns_db_newversion(db, &version);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue