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: https://origsvn.digium.com/svn/asterisk/branches/1.8@279726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Paul Belanger
2010-07-27 01:53:38 +00:00
parent 78ba97ffdf
commit 9f553c797e

View File

@@ -1078,8 +1078,8 @@ static int __ast_http_load(int reload)
ast_sockaddr_from_sin(&https_desc.local_address, &tmp2); ast_sockaddr_from_sin(&https_desc.local_address, &tmp2);
} }
if (!enabled) { if (!enabled) {
http_desc.local_address.ss.ss_family = 0; ast_sockaddr_setnull(&http_desc.local_address);
https_desc.local_address.ss.ss_family = 0; ast_sockaddr_setnull(&https_desc.local_address);
} }
if (strcmp(prefix, newprefix)) { if (strcmp(prefix, newprefix)) {
ast_copy_string(prefix, newprefix, sizeof(prefix)); ast_copy_string(prefix, newprefix, sizeof(prefix));