[asterisk-commits] twilson: trunk r341090 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 17 10:45:22 CDT 2011
Author: twilson
Date: Mon Oct 17 10:45:18 2011
New Revision: 341090
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=341090
Log:
Don't try to remove peers without IPs from peers_by_ip
(closes issue ASTERISK-18696)
........
Merged revisions 341088 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 341089 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=341090&r1=341089&r2=341090
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Oct 17 10:45:18 2011
@@ -27372,7 +27372,9 @@
found++;
/* we've unlinked the peer from the peers container but not unlinked from the peers_by_ip container yet
this leads to a wrong refcounter and the peer object is never destroyed */
- ao2_t_unlink(peers_by_ip, peer, "ao2_unlink peer from peers_by_ip table");
+ if (!ast_sockaddr_isnull(&peer->addr)) {
+ ao2_t_unlink(peers_by_ip, peer, "ao2_unlink peer from peers_by_ip table");
+ }
if (!(peer->the_mark))
firstpass = 0;
} else {
More information about the asterisk-commits
mailing list