From: Alan T. DeKok Date: Wed, 19 Oct 2011 15:43:15 +0000 (+0200) Subject: Initialize all of the structure X-Git-Tag: release_3_0_0_beta0~556 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef2c68c283945a77036b85e0ced199ae001b3e14;p=thirdparty%2Ffreeradius-server.git Initialize all of the structure --- diff --git a/src/main/listen.c b/src/main/listen.c index f4d737aec7c..6d0a242f239 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -854,6 +854,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);