Remove dead links from the list of all links
Fix segfault that occurs when bip admin users use: /BIP DEL_CONN <connection name> /BIP ADD_CONN <connection name> <network> Closes #325
This commit is contained in:
parent
88242715f4
commit
f7ace64abe
@ -2625,6 +2625,8 @@ void link_kill(bip_t *bip, struct link *link)
|
|||||||
while ((ci = list_remove_first(&link->chan_infos_order)))
|
while ((ci = list_remove_first(&link->chan_infos_order)))
|
||||||
free(ci);
|
free(ci);
|
||||||
|
|
||||||
|
list_remove(&bip->link_list, link);
|
||||||
|
|
||||||
MAYFREE(link->username);
|
MAYFREE(link->username);
|
||||||
MAYFREE(link->realname);
|
MAYFREE(link->realname);
|
||||||
MAYFREE(link->s_password);
|
MAYFREE(link->s_password);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user