[asterisk-commits] pabelanger: branch 1.8 r279726 - /branches/1.8/main/http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 26 20:53:42 CDT 2010


Author: pabelanger
Date: Mon Jul 26 20:53:38 2010
New Revision: 279726

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=279726
Log:
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)

Modified:
    branches/1.8/main/http.c

Modified: branches/1.8/main/http.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/http.c?view=diff&rev=279726&r1=279725&r2=279726
==============================================================================
--- branches/1.8/main/http.c (original)
+++ branches/1.8/main/http.c Mon Jul 26 20:53:38 2010
@@ -1078,8 +1078,8 @@
 		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));




More information about the asterisk-commits mailing list