]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Adding a missing mutex unlock.
authorMark Michelson <mmichelson@digium.com>
Thu, 15 Nov 2007 14:54:10 +0000 (14:54 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 15 Nov 2007 14:54:10 +0000 (14:54 +0000)
(closes issue 11256, reported and patched by ys)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89286 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 54c7c1adf8195d99eb10d3437b6f9bbbb6d5917c..97b86b5dd32b04d0d299bb4cf959719659b26de4 100644 (file)
@@ -2487,6 +2487,7 @@ static struct mansession *find_session(unsigned long ident)
                ast_mutex_lock(&s->__lock);
                if (s->sessiontimeout && (s->managerid == ident) && !s->needdestroy) {
                        s->inuse++;
+                       ast_mutex_unlock(&s->__lock);
                        break;
                }
                ast_mutex_unlock(&s->__lock);