* Fixed: Botnet auth messages now propagate correctly throughout the botnet

This commit is contained in:
joonicks
2018-04-21 01:32:53 +02:00
parent 808269bb68
commit b4c6efaf0e
10 changed files with 43 additions and 49 deletions

View File

@@ -194,18 +194,20 @@ Strp *prepend_strp(Strp **pp, const char *string)
}
/*
* Free() a chain of Strp's
* Free() a whole linked list of any suitable type (Strp, Banlist)
*/
void purge_strplist(Strp *sp)
void purge_linklist(void **list)
{
Strp *nxt;
Strp *sp,*nxt;
sp = *list;
while(sp)
{
nxt = sp->next;
Free((char**)&sp);
sp = nxt;
}
*list = NULL;
}
/*