[master] race condition when reloading while resigning

4661.	[bug]		A race condition could occur if a zone was reloaded
			while resigning, triggering a crash in
			rbtdb.c:closeversion(). [RT #45276]
This commit is contained in:
Evan Hunt
2017-07-28 00:02:17 -07:00
parent 5140501a0b
commit 036305f00d
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -1,3 +1,7 @@
4661. [bug] A race condition could occur if a zone was reloaded
while resigning, triggering a crash in
rbtdb.c:closeversion(). [RT #45276]
4660. [bug] Remove spurious "peer" from Windows socket log
messages. [RT #45617]
+1 -1
View File
@@ -6438,7 +6438,7 @@ zone_resigninc(dns_zone_t *zone) {
for (i = 0; i < nkeys; i++)
dst_key_free(&zone_keys[i]);
if (version != NULL) {
dns_db_closeversion(zone->db, &version, ISC_FALSE);
dns_db_closeversion(db, &version, ISC_FALSE);
dns_db_detach(&db);
} else if (db != NULL)
dns_db_detach(&db);