Module: ngircd.git Branch: master Commit: 1ea681161652c118d7acb7932678e1acf6646611 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=1ea68...
Author: Alexander Barton alex@barton.de Date: Sat Nov 5 00:21:19 2011 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 97634af..dccc9c7 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- */