commit 1ea681161652c118d7acb7932678e1acf6646611 from: Alexander Barton date: Fri Nov 04 23:21:19 2011 UTC Init_Server_Struct(): correctly zero Server->bind_addr Don't use the size of the pointer, use the size of the variable! commit - d2f54abbedb299a8c3d32295c24397535a4bd2af commit + 1ea681161652c118d7acb7932678e1acf6646611 blob - 97634af919e609259922d82138208afb4f8043ec blob + dccc9c7a27929feae79206f0038d738218f9c19f --- src/ngircd/conf.c +++ src/ngircd/conf.c @@ -2048,7 +2048,7 @@ Init_Server_Struct( CONF_SERVER *Server ) Proc_InitStruct(&Server->res_stat); Server->conn_id = NONE; - memset(&Server->bind_addr, 0, sizeof(&Server->bind_addr)); + memset(&Server->bind_addr, 0, sizeof(Server->bind_addr)); } /* -eof- */