[asterisk-commits] russell: trunk r163642 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 12 12:19:48 CST 2008


Author: russell
Date: Fri Dec 12 12:19:47 2008
New Revision: 163642

URL: http://svn.digium.com/view/asterisk?view=rev&rev=163642
Log:
Resolve crashes when using SIP TCP/TLS with qualify.

The problem was a reference count error on the tcptls_session structure.

(closes issue #13989)
Reported by: Nugget

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=163642&r1=163641&r2=163642
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Dec 12 12:19:47 2008
@@ -21115,7 +21115,7 @@
 	
 	p->sa = peer->addr;
 	p->recv = peer->addr;
-	p->socket = peer->socket;
+	copy_socket_data(&p->socket, &peer->socket);
 	ast_copy_flags(&p->flags[0], &peer->flags[0], SIP_FLAGS_TO_COPY);
 	ast_copy_flags(&p->flags[1], &peer->flags[1], SIP_PAGE2_FLAGS_TO_COPY);
 




More information about the asterisk-commits mailing list