mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
[9.20] fix: dev: Add a missing rcu_read_unlock() call on exit path
An exit path in the dns_dispatch_add() function fails to get out of the RCU critical section when returning early. Add the missing rcu_read_unlock() call. Backport of MR !9561 Merge branch 'backport-aram/add-missing-rcu_read_unlock-in-dns_dispatch_add-9.20' into 'bind-9.20' See merge request isc-projects/bind9!9564
This commit is contained in:
@@ -1496,6 +1496,7 @@ dns_dispatch_add(dns_dispatch_t *disp, isc_loop_t *loop,
|
||||
fail:
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
isc_mem_put(disp->mctx, resp, sizeof(*resp));
|
||||
rcu_read_unlock();
|
||||
return (result);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user