diff options
| author | Alexander Barton <alex@barton.de> | 2011-11-05 00:21:19 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-11-05 00:21:19 +0100 |
| commit | 1ea681161652c118d7acb7932678e1acf6646611 (patch) | |
| tree | 57cb92ad6a8b8d1166c9a96ff7bf483da7fe4569 | |
| parent | d2f54abbedb299a8c3d32295c24397535a4bd2af (diff) | |
| download | ngircd-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!
| -rw-r--r-- | 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 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- */ |