mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-28 21:17:54 +00:00
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.
This commit is contained in:
parent
62c49db973
commit
4123d59fbc
@ -1494,6 +1494,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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user