]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Move the check for a failure of ast_channel_alloc() to before locking the
authorRussell Bryant <russell@russellbryant.com>
Wed, 17 Jan 2007 21:17:21 +0000 (21:17 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 17 Jan 2007 21:17:21 +0000 (21:17 +0000)
commitcbfeb816e15322b78c0713b88aa296f4fdcdb2aa
tree4e7d824c8fc7675598846823becda643cb7bc66b
parent0fad242a191ad95ab896b14b14da25b7d0b542b4
Move the check for a failure of ast_channel_alloc() to before locking the
pvt structure again.  Otherwise, on a failure, this will cause a deadlock.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c