diff options
author | Marvin Sielenkemper <sielenk@gmx.de> | 2016-12-01 08:29:51 +0100 |
---|---|---|
committer | Marvin Sielenkemper <sielenk@gmx.de> | 2016-12-01 08:29:51 +0100 |
commit | 18876ba1e372323b3ed0361bf1d33bd7a22b097e (patch) | |
tree | e89b2b09287e94cf14a1c0f1fcd23c60154b734c /src | |
parent | 730b627fb1cad24b454bc8c3b652ae5bbd21a839 (diff) |
zero initialize the socket address structure
Diffstat (limited to 'src')
-rw-r--r-- | src/c/http.c | 1 |
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 |