X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/ad3104a4f80c2659129b9073351c007aa77dcbc5..625ccd4e28eb61b229663b3dc531a649762012bb:/src/spamserv.c diff --git a/src/spamserv.c b/src/spamserv.c index 9fa3254..4957426 100644 --- a/src/spamserv.c +++ b/src/spamserv.c @@ -3,7 +3,7 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. Important limitations are * listed in the COPYING file that accompanies this software. * @@ -571,9 +571,7 @@ static void spamserv_create_user(struct userNode *user) { struct userInfo *uInfo = malloc(sizeof(struct userInfo)); - struct killNode *kNode = NULL; - - kNode = dict_find(killed_users_dict, irc_ntoa(&user->ip), 0); + struct killNode *kNode = dict_find(killed_users_dict, irc_ntoa(&user->ip), 0); if(!uInfo) { @@ -598,7 +596,7 @@ spamserv_create_user(struct userNode *user) if(kNode) { - free(kNode); + /* free(kNode); dict_remove does this */ dict_remove(killed_users_dict, irc_ntoa(&user->ip)); } }