mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-19 03:52:52 +00:00
Init_Server_Struct(): correctly zero Server->bind_addr
Don't use the size of the pointer, use the size of the variable!
This commit is contained in:
parent
d2f54abbed
commit
1ea6811616
@ -2048,7 +2048,7 @@ Init_Server_Struct( CONF_SERVER *Server )
|
|||||||
|
|
||||||
Proc_InitStruct(&Server->res_stat);
|
Proc_InitStruct(&Server->res_stat);
|
||||||
Server->conn_id = NONE;
|
Server->conn_id = NONE;
|
||||||
memset(&Server->bind_addr, 0, sizeof(&Server->bind_addr));
|
memset(&Server->bind_addr, 0, sizeof(Server->bind_addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -eof- */
|
/* -eof- */
|
||||||
|
Loading…
Reference in New Issue
Block a user