Commit 78d4a912 authored by stettberger's avatar stettberger

removed bug from rm_buddy

parent 87720b5d
......@@ -72,7 +72,7 @@ void rm_buddy(SilcClientEntry client){
buddies=buddies->next;
return;
}
for(del=buddies; del->next; del=del->next)
for(del=buddies; del && del->next; del=del->next)
if(del->next->client==client){
tmp=del->next;
del->next=del->next->next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment