diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-11 01:09:46 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-11 01:09:46 +0000 |
commit | 36f98c5fc7afdf1b905311baabbd3a54c9e3e220 (patch) | |
tree | 4c392b3882cb19213e4e77cd39fe341ca2bd6062 | |
parent | d7a3bcf49b7224604a90914d4256fd02efbbfcc9 (diff) |
Merged revisions 107290 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107290 | twilson | 2008-03-10 19:59:18 -0500 (Mon, 10 Mar 2008) | 2 lines
If we fail to alloc a channel, we should re-lock the pvt structure before returning.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107292 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 39b2d27ea..9f3b83043 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5195,6 +5195,7 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit } if (!tmp) { ast_log(LOG_WARNING, "Unable to allocate AST channel structure for SIP channel\n"); + sip_pvt_lock(i); return NULL; } sip_pvt_lock(i); |