mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fix rwlock type mismatch in delete_ds() error path
The lock is acquired for reading but the error path from dns_rdata_fromstruct() incorrectly unlocks it as a write lock.
This commit is contained in:
parent
106416eb38
commit
96a22451d7
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ delete_ds(dns_qp_t *qp, dns_keytable_t *keytable, dns_keynode_t *knode,
|
|||
result = dns_rdata_fromstruct(&dsrdata, dns_rdataclass_in,
|
||||
dns_rdatatype_ds, ds, &b);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
RWUNLOCK(&knode->rwlock, isc_rwlocktype_write);
|
||||
RWUNLOCK(&knode->rwlock, isc_rwlocktype_read);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue