From 1ea681161652c118d7acb7932678e1acf6646611 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 5 Nov 2011 00:21:19 +0100 Subject: [PATCH] Init_Server_Struct(): correctly zero Server->bind_addr Don't use the size of the pointer, use the size of the variable! --- src/ngircd/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 97634af9..dccc9c7a 100644 --- a/src/ngircd/conf.c +++ b/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- */ -- 2.40.0