aboutsummaryrefslogtreecommitdiffstats
path: root/main/tcptls.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-21 10:26:07 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-21 10:26:07 +0000
commitd5caf2765c0680599f54b75cc65dab636f58ca24 (patch)
tree86a36d3a303e66adf0afc4bc0c4fa9f1aa755840 /main/tcptls.c
parent15f9b3b2077f27e7f958ab1a3434154e9404ea73 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@169620 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/tcptls.c')
-rw-r--r--main/tcptls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/tcptls.c b/main/tcptls.c
index 4c01f223b..6aa0db800 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;