aboutsummaryrefslogtreecommitdiffstats
path: root/main/tcptls.c
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-17 01:56:36 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-17 01:56:36 +0000
commitd2601c379ad6c17dba9f647e9df9d69f2138caeb (patch)
tree7a42f4cc3ae775a7cfe1cd2e390e03e74468a467 /main/tcptls.c
parent729d4f1b6b2e23ac00642ebce8b1c3534140045b (diff)
Fix qualify for TCP peer
(closes issue #14192) Reported by: pabelanger Patches: asterisk-bug14192.diff.txt uploaded by jamesgolovich (license 176) Tested by: jamesgolovich git-svn-id: http://svn.digium.com/svn/asterisk/trunk@169080 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/tcptls.c')
-rw-r--r--main/tcptls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/tcptls.c b/main/tcptls.c
index b1c615aea..4c01f223b 100644
--- a/main/tcptls.c
+++ b/main/tcptls.c
@@ -334,12 +334,12 @@ struct ast_tcptls_session_instance *ast_tcptls_client_start(struct ast_tcptls_se
struct ast_tcptls_session_instance *tcptls_session = NULL;
/* Do nothing if nothing has changed */
- if(!memcmp(&desc->old_local_address, &desc->local_address, sizeof(desc->old_local_address))) {
+ if (!memcmp(&desc->old_address, &desc->remote_address, sizeof(desc->old_address))) {
ast_debug(1, "Nothing changed in %s\n", desc->name);
return NULL;
}
- desc->old_local_address = desc->local_address;
+ desc->old_address = desc->remote_address;
if (desc->accept_fd != -1)
close(desc->accept_fd);
@@ -417,12 +417,12 @@ void ast_tcptls_server_start(struct ast_tcptls_session_args *desc)
int x = 1;
/* Do nothing if nothing has changed */
- if (!memcmp(&desc->old_local_address, &desc->local_address, sizeof(desc->old_local_address))) {
+ if (!memcmp(&desc->old_address, &desc->local_address, sizeof(desc->old_address))) {
ast_debug(1, "Nothing changed in %s\n", desc->name);
return;
}
- desc->old_local_address = desc->local_address;
+ desc->old_address = desc->local_address;
/* Shutdown a running server if there is one */
if (desc->master != AST_PTHREADT_NULL) {