summaryrefslogtreecommitdiff
path: root/src/c/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/http.c')
-rw-r--r--src/c/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/c/http.c b/src/c/http.c
index afa5de66..f7fdc122 100644
--- a/src/c/http.c
+++ b/src/c/http.c
@@ -341,6 +341,7 @@ int main(int argc, char *argv[]) {
signal(SIGPIPE, SIG_IGN);
// default if not specified: IPv4 with my IP
+ memset(&my_addr, 0, sizeof my_addr);
my_addr.sa.sa_family = AF_INET;
my_addr.ipv4.sin_addr.s_addr = INADDR_ANY; // auto-fill with my IP