]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Initialize all of the structure
authorAlan T. DeKok <aland@freeradius.org>
Wed, 19 Oct 2011 15:43:15 +0000 (17:43 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 19 Oct 2011 15:47:15 +0000 (17:47 +0200)
src/main/listen.c

index f4d737aec7c5c09414e7226043db656337ff005f..6d0a242f23972b67412f21aa4358a1335c2b59f0 100644 (file)
@@ -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);