]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_lock: Fix requesters counter in error paths.
authorJaco Kroon <jaco@uls.co.za>
Sat, 22 May 2021 12:48:18 +0000 (14:48 +0200)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 11 Jun 2021 18:03:16 +0000 (13:03 -0500)
commit6bd741b77da9d6f46017937cea93af2d62ded8e4
tree4f93f813cc8158c894e1d60642a070987cc09ff9
parenta611a0cd42743ed2535487d252da9d4c14f5d627
func_lock: Fix requesters counter in error paths.

In two places we bail out with failure after we've already incremented
the requesters counter, if this occured then it would effectively result
in unload to wait indefinitely, thus preventing clean shutdown.

Change-Id: I362a6c0dc424f736d4a9c733d818e72d19675283
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
funcs/func_lock.c