Merged revisions 89286 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89286 | mmichelson | 2007-11-15 08:54:10 -0600 (Thu, 15 Nov 2007) | 4 lines

Adding a missing mutex unlock.

(closes issue 11256, reported and patched by ys)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2007-11-15 14:55:35 +00:00
parent 8740176dc3
commit eee4ed80cf

View File

@@ -2834,6 +2834,7 @@ static struct mansession *find_session(unsigned long ident)
ast_mutex_lock(&s->__lock);
if (s->managerid == ident && !s->needdestroy) {
ast_atomic_fetchadd_int(&s->inuse, 1);
ast_mutex_unlock(&s->__lock);
break;
}
ast_mutex_unlock(&s->__lock);