about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2011-11-05 00:21:19 +0100
committerAlexander Barton <alex@barton.de>2011-11-05 00:21:19 +0100
commit1ea681161652c118d7acb7932678e1acf6646611 (patch)
tree57cb92ad6a8b8d1166c9a96ff7bf483da7fe4569 /src
parentd2f54abbedb299a8c3d32295c24397535a4bd2af (diff)
downloadngircd-1ea681161652c118d7acb7932678e1acf6646611.tar.gz
ngircd-1ea681161652c118d7acb7932678e1acf6646611.zip
Init_Server_Struct(): correctly zero Server->bind_addr
Don't use the size of the pointer, use the size of the variable!
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conf.c2
1 files changed, 1 insertions, 1 deletions
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- */