Proper initialization of subnet

This commit is contained in:
thorkill 2015-06-30 19:15:43 +02:00
parent 7ed725888b
commit c17cb1a0f2

View file

@ -197,7 +197,8 @@ bool get_config_address(const config_t *cfg, struct addrinfo **result) {
}
bool get_config_subnet(const config_t *cfg, subnet_t ** result) {
subnet_t subnet = {NULL};
subnet_t subnet;
memset(&subnet, 0x0, sizeof(subnet_t));
if(!cfg)
return false;