summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-03-15 16:21:04 +0000
committerRussell Bryant <russell@russellbryant.com>2008-03-15 16:21:04 +0000
commit072eb8a913fb51bf9a45ce67f498868f07503525 (patch)
treedc59c67a7d30e2177ab86ffc36dff1811c217510 /main/pbx.c
parent928475694acb75e5cd7b503eb9213090ae3fe629 (diff)
Remove a double write lock of the contexts lock in ast_wrlock_contexts().
How did this ever work? (closes issue #12219) Reported by: ys Patches: pbx.c.diff uploaded by ys (license 281) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 029b68b8a..d32994fe7 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -7823,7 +7823,7 @@ int ast_wrlock_contexts()
int res = ast_rwlock_wrlock(&conlock);
if (!res)
ast_atomic_fetchadd_int(&conlock_wrlock_version, 1);
- return ast_rwlock_wrlock(&conlock);
+ return res;
}
int ast_rdlock_contexts()