ircd: Zero out the global_client_list
Otherwise we unconditionally add "me" to it twice in some unit tests, which results in a loop in the list.
This commit is contained in:
parent
0e5b57c40b
commit
e89a399f94
1 changed files with 1 additions and 0 deletions
|
@ -679,6 +679,7 @@ charybdis_main(int argc, char * const argv[])
|
||||||
me.localClient = &meLocalUser;
|
me.localClient = &meLocalUser;
|
||||||
|
|
||||||
/* Make sure all lists are zeroed */
|
/* Make sure all lists are zeroed */
|
||||||
|
memset(&global_client_list, 0, sizeof(global_client_list));
|
||||||
memset(&unknown_list, 0, sizeof(unknown_list));
|
memset(&unknown_list, 0, sizeof(unknown_list));
|
||||||
memset(&lclient_list, 0, sizeof(lclient_list));
|
memset(&lclient_list, 0, sizeof(lclient_list));
|
||||||
memset(&serv_list, 0, sizeof(serv_list));
|
memset(&serv_list, 0, sizeof(serv_list));
|
||||||
|
|
Loading…
Reference in a new issue