summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/http.c4
1 files changed, 2 insertions, 2 deletions
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));