[asterisk-commits] russell: trunk r169620 - /trunk/main/tcptls.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 21 04:26:07 CST 2009
Author: russell
Date: Wed Jan 21 04:26:07 2009
New Revision: 169620
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=169620
Log:
Fix a regression in TCP support.
This patch fixes a problem that caused chan_sip to think that every open TCP session
was to a remote address of 0.0.0.0:0.
(closes issue #14287)
Reported by: jamesgolovich
Patches:
bug-14287.diff.txt uploaded by jamesgolovich (license 176)
Modified:
trunk/main/tcptls.c
Modified: trunk/main/tcptls.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/tcptls.c?view=diff&rev=169620&r1=169619&r2=169620
==============================================================================
--- trunk/main/tcptls.c (original)
+++ trunk/main/tcptls.c Wed Jan 21 04:26:07 2009
@@ -383,7 +383,7 @@
tcptls_session->fd = desc->accept_fd;
tcptls_session->parent = desc;
tcptls_session->parent->worker_fn = NULL;
- memcpy(&tcptls_session->remote_address, &desc->local_address, sizeof(tcptls_session->remote_address));
+ memcpy(&tcptls_session->remote_address, &desc->remote_address, sizeof(tcptls_session->remote_address));
tcptls_session->client = 1;
More information about the asterisk-commits
mailing list