From 44af92a6d635bdd3d6043ecd6e56a1a5470952a0 Mon Sep 17 00:00:00 2001 From: pabelanger Date: Tue, 27 Jul 2010 01:53:38 +0000 Subject: Use ast_sockaddr_setnull() when http is not enabled. Otherwise, ast_tcptls_server_start() will still start http. (closes issue #17708) Reported by: pabelanger Patches: http.patch uploaded by pabelanger (license 224) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@279726 f38db490-d61c-443f-a65b-d21fe96a405b --- main/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main') diff --git a/main/http.c b/main/http.c index 6390297e5..a99d3b759 100644 --- a/main/http.c +++ b/main/http.c @@ -1078,8 +1078,8 @@ static int __ast_http_load(int reload) ast_sockaddr_from_sin(&https_desc.local_address, &tmp2); } if (!enabled) { - http_desc.local_address.ss.ss_family = 0; - https_desc.local_address.ss.ss_family = 0; + ast_sockaddr_setnull(&http_desc.local_address); + ast_sockaddr_setnull(&https_desc.local_address); } if (strcmp(prefix, newprefix)) { ast_copy_string(prefix, newprefix, sizeof(prefix)); -- cgit v1.2.3