From 757019fd19cbba5c2a25d7a18d5517b515666aaf Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 21 Jan 2009 10:26:07 +0000 Subject: [PATCH] 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@169620 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/tcptls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/tcptls.c b/main/tcptls.c index 4c01f223b5..6aa0db8006 100644 --- a/main/tcptls.c +++ b/main/tcptls.c @@ -383,7 +383,7 @@ struct ast_tcptls_session_instance *ast_tcptls_client_start(struct ast_tcptls_se 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;