From: pk910 Date: Sat, 13 Aug 2011 02:14:54 +0000 (+0200) Subject: fixed possible NULL access bug X-Git-Tag: v5.3~558 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=fe9a4070fdc18d1342d41079bb6f416b19160dba;p=NeonServV5.git fixed possible NULL access bug --- diff --git a/IRCParser.c b/IRCParser.c index bc14dfc..682cdf0 100644 --- a/IRCParser.c +++ b/IRCParser.c @@ -281,6 +281,7 @@ static IRC_CMD(raw_notice) { static IRC_CMD(raw_nick) { if(from == NULL || argc == 0) return 0; struct UserNode *user = getUserByMask(from); + if(user == NULL) return 0; event_nick(user, argv[0]); renameUser(user, argv[0]); return 1;