[asterisk-commits] twilson: branch 1.8 r341088 - /branches/1.8/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 17 10:35:09 CDT 2011
Author: twilson
Date: Mon Oct 17 10:35:05 2011
New Revision: 341088
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=341088
Log:
Don't try to remove peers without IPs from peers_by_ip
(closes issue ASTERISK-18696)
Modified:
branches/1.8/channels/chan_sip.c
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=341088&r1=341087&r2=341088
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Mon Oct 17 10:35:05 2011
@@ -26607,7 +26607,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