[asterisk-commits] russell: branch 1.4 r79470 - /branches/1.4/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Aug 14 13:49:11 CDT 2007
Author: russell
Date: Tue Aug 14 13:49:10 2007
New Revision: 79470
URL: http://svn.digium.com/view/asterisk?view=rev&rev=79470
Log:
Fix another spot where an iax2_peer would be leaked if realtime was in use.
Modified:
branches/1.4/channels/chan_iax2.c
Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=79470&r1=79469&r2=79470
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Tue Aug 14 13:49:10 2007
@@ -5284,8 +5284,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 asterisk-commits
mailing list