[svn-commits] russell: trunk r79471 - in /trunk: ./ channels/chan_iax2.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Aug 14 13:50:12 CDT 2007
Author: russell
Date: Tue Aug 14 13:50:12 2007
New Revision: 79471
URL: http://svn.digium.com/view/asterisk?view=rev&rev=79471
Log:
Merged revisions 79470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r79470 | russell | 2007-08-14 13:49:10 -0500 (Tue, 14 Aug 2007) | 2 lines
Fix another spot where an iax2_peer would be leaked if realtime was in use.
........
Modified:
trunk/ (props changed)
trunk/channels/chan_iax2.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=79471&r1=79470&r2=79471
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Tue Aug 14 13:50:12 2007
@@ -5560,8 +5560,11 @@
ast_mutex_unlock(&iaxsl[callno]);
if ((peer = realtime_peer(peer_name, NULL))) {
ast_mutex_lock(&iaxsl[callno]);
- if (!(p = iaxs[callno]))
+ if (!(p = iaxs[callno])) {
+ if (ast_test_flag(peer, IAX_TEMPONLY))
+ destroy_peer(peer);
return -1;
+ }
res = authenticate(p->challenge, peer->secret,peer->outkey, authmethods, &ied, sin, &p->ecx, &p->dcx);
if (ast_test_flag(peer, IAX_TEMPONLY))
destroy_peer(peer);
More information about the svn-commits
mailing list