From: Alan T. DeKok Date: Thu, 6 Sep 2012 09:09:46 +0000 (+0200) Subject: Ensure all fields are initialized X-Git-Tag: release_2_2_0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f4f7bde636bc5a04e3f70e8cce12427e67434a7;p=thirdparty%2Ffreeradius-server.git Ensure all fields are initialized --- diff --git a/src/main/listen.c b/src/main/listen.c index 96ab3283871..8202a36b71d 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -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'.");