[svn-commits] russell: branch 1.6.2 r183564 - in /branches/1.6.2: ./ channels/chan_iax2.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Mar 20 12:09:35 CDT 2009
Author: russell
Date: Fri Mar 20 12:09:32 2009
New Revision: 183564
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183564
Log:
Merged revisions 183560 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r183560 | russell | 2009-03-20 12:00:58 -0500 (Fri, 20 Mar 2009) | 10 lines
Merged revisions 183559 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r183559 | russell | 2009-03-20 11:53:25 -0500 (Fri, 20 Mar 2009) | 2 lines
Fix a crash in IAX2 registration handling found during load testing with dvossel.
........
................
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/channels/chan_iax2.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
--- trunk-merged (original)
+++ trunk-merged Fri Mar 20 12:09:32 2009
@@ -1,1 +1,1 @@
-/trunk:1-182359,182408,182450,182525,182530,182553,182722,182847,183028,183057,183108,183117,183242,183244,183321,183511
+/trunk:1-182359,182408,182450,182525,182530,182553,182722,182847,183028,183057,183108,183117,183242,183244,183321,183511,183560
Modified: branches/1.6.2/channels/chan_iax2.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.2/channels/chan_iax2.c?view=diff&rev=183564&r1=183563&r2=183564
==============================================================================
--- branches/1.6.2/channels/chan_iax2.c (original)
+++ branches/1.6.2/channels/chan_iax2.c Fri Mar 20 12:09:32 2009
@@ -6682,15 +6682,20 @@
ast_devstate_changed(AST_DEVICE_UNKNOWN, "IAX2/%s", p->name); /* Activate notification */
return_unref:
- ast_string_field_set(iaxs[callno], peer, peer);
- /* Choose lowest expiry number */
- if (expire && (expire < iaxs[callno]->expiry))
- iaxs[callno]->expiry = expire;
+ if (iaxs[callno]) {
+ ast_string_field_set(iaxs[callno], peer, peer);
+
+ /* Choose lowest expiry number */
+ if (expire && (expire < iaxs[callno]->expiry)) {
+ iaxs[callno]->expiry = expire;
+ }
+ }
res = 0;
- if (p)
+ if (p) {
peer_unref(p);
+ }
return res;
}
More information about the svn-commits
mailing list