]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ensure all fields are initialized
authorAlan T. DeKok <aland@freeradius.org>
Thu, 6 Sep 2012 09:09:46 +0000 (11:09 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 6 Sep 2012 09:33:17 +0000 (11:33 +0200)
src/main/listen.c

index 96ab328387113f0ef5f20612d4f45e50f9fe718f..8202a36b71d90078507725d7e82f62ab2b8c95df 100644 (file)
@@ -2031,6 +2031,8 @@ int listen_init(CONF_SECTION *config, rad_listen_t **head)
 
        if (rcode == 0) { /* successfully parsed IPv4 */
                listen_socket_t *sock;
+
+               memset(&server_ipaddr, 0, sizeof(server_ipaddr));
                server_ipaddr.af = AF_INET;
 
                radlog(L_INFO, "WARNING: The directive 'bind_address' is deprecated, and will be removed in future versions of FreeRADIUS. Please edit the configuration files to use the directive 'listen'.");