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:25 +0000 (11:33 +0200)
src/main/listen.c

index 4ceed30..11bca64 100644 (file)
@@ -2769,6 +2769,8 @@ int listen_init(CONF_SECTION *config, rad_listen_t **head, int spawn_flag)
 
        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'.");