fixed possible NULL access bug
authorpk910 <philipp@zoelle1.de>
Sat, 13 Aug 2011 02:14:54 +0000 (04:14 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 13 Aug 2011 02:14:54 +0000 (04:14 +0200)
IRCParser.c

index bc14dfcfc04689f7ec6ff67b118749f3d2049c98..682cdf0fc811e170969388315791f34a5ef689d1 100644 (file)
@@ -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;