From f6001f39e239b1a8d844118b003cf7962de8018d Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Thu, 30 May 2019 23:43:45 +0800 Subject: [PATCH] Initialize properly sockaddr_in structs --- hydra-mod.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hydra-mod.c b/hydra-mod.c index b53390a..7df7928 100644 --- a/hydra-mod.c +++ b/hydra-mod.c @@ -102,6 +102,8 @@ int32_t internal__hydra_connect(char *host, int32_t port, int32_t type, int32_t selected_proxy = random() % proxy_count; } + memset(&target, 0, sizeof(target)); + memset(&sin, 0, sizeof(sin)); #ifdef AF_INET6 memset(&target6, 0, sizeof(target6)); memset(&sin6, 0, sizeof(sin6));