[asterisk-commits] dvossel: trunk r290509 - in /trunk: ./ channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 5 17:23:54 CDT 2010
Author: dvossel
Date: Tue Oct 5 17:23:52 2010
New Revision: 290509
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=290509
Log:
Merged revisions 290506 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r290506 | dvossel | 2010-10-05 17:23:00 -0500 (Tue, 05 Oct 2010) | 2 lines
Fixes uninitialized memory problem in 'iax2 set debug peer' option.
........
Modified:
trunk/ (props changed)
trunk/channels/chan_iax2.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: trunk/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=290509&r1=290508&r2=290509
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Tue Oct 5 17:23:52 2010
@@ -7312,7 +7312,6 @@
struct iax2_peer *peer;
struct sockaddr_in peer_addr;
- ast_sockaddr_to_sin(&peer->addr, &peer_addr);
if (a->argc != e->args + 1)
return CLI_SHOWUSAGE;
@@ -7323,6 +7322,8 @@
ast_cli(a->fd, "IAX2 peer '%s' does not exist\n", a->argv[e->args-1]);
return CLI_FAILURE;
}
+
+ ast_sockaddr_to_sin(&peer->addr, &peer_addr);
debugaddr.sin_addr = peer_addr.sin_addr;
debugaddr.sin_port = peer_addr.sin_port;
More information about the asterisk-commits
mailing list