projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5acd163
)
fixed possible NULL access bug
author
pk910
<philipp@zoelle1.de>
Sat, 13 Aug 2011 02:14:54 +0000
(
04:14
+0200)
committer
pk910
<philipp@zoelle1.de>
Sat, 13 Aug 2011 02:14:54 +0000
(
04:14
+0200)
IRCParser.c
patch
|
blob
|
history
diff --git
a/IRCParser.c
b/IRCParser.c
index bc14dfcfc04689f7ec6ff67b118749f3d2049c98..682cdf0fc811e170969388315791f34a5ef689d1 100644
(file)
--- 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;