From: Alan T. DeKok Date: Wed, 19 Oct 2011 15:43:15 +0000 (+0200) Subject: Initialize all of the structure X-Git-Tag: release_2_2_0~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35c69e51dabd5948a6e2dafd0ce1df436401aec8;p=thirdparty%2Ffreeradius-server.git Initialize all of the structure --- diff --git a/src/main/listen.c b/src/main/listen.c index 0b11afd5ef4..1b450a85aed 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -510,6 +510,7 @@ static int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this) /* * Try IPv4 first */ + memset(&ipaddr, 0, sizeof(ipaddr)); ipaddr.ipaddr.ip4addr.s_addr = htonl(INADDR_NONE); rcode = cf_item_parse(cs, "ipaddr", PW_TYPE_IPADDR, &ipaddr.ipaddr.ip4addr, NULL);