projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d993c4
)
fixed crash in event_neonserv_join.c (dynlimit callback)
author
pk910
<philipp@zoelle1.de>
Sun, 25 Mar 2012 18:11:26 +0000
(20:11 +0200)
committer
pk910
<philipp@zoelle1.de>
Sun, 25 Mar 2012 18:11:26 +0000
(20:11 +0200)
src/modules/NeonServ.mod/event_neonserv_join.c
patch
|
blob
|
history
diff --git
a/src/modules/NeonServ.mod/event_neonserv_join.c
b/src/modules/NeonServ.mod/event_neonserv_join.c
index 68dd0a5ae6c778289d2eac1f1b3476341c82589a..e2c54a57994b9995ea00c3b4f84a396f8ac96038 100644
(file)
--- a/
src/modules/NeonServ.mod/event_neonserv_join.c
+++ b/
src/modules/NeonServ.mod/event_neonserv_join.c
@@
-237,6
+237,7
@@
static TIMEQ_CALLBACK(neonserv_event_join_dynlimit) {
char *chanName = data;
struct ChanNode *chan = getChanByName(chanName);
free(chanName);
+ if(!chan) return;
struct ClientSocket *client = getBotForChannel(chan);
if(!client) return;
loadChannelSettings(chan);