mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-19 21:03:52 -07:00
Initialize properly sockaddr_in structs
This commit is contained in:
parent
d24d7a8665
commit
f6001f39e2
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,8 @@ int32_t internal__hydra_connect(char *host, int32_t port, int32_t type, int32_t
|
||||||
selected_proxy = random() % proxy_count;
|
selected_proxy = random() % proxy_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(&target, 0, sizeof(target));
|
||||||
|
memset(&sin, 0, sizeof(sin));
|
||||||
#ifdef AF_INET6
|
#ifdef AF_INET6
|
||||||
memset(&target6, 0, sizeof(target6));
|
memset(&target6, 0, sizeof(target6));
|
||||||
memset(&sin6, 0, sizeof(sin6));
|
memset(&sin6, 0, sizeof(sin6));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue