aboutsummaryrefslogtreecommitdiffstats
path: root/main/dircproxy/1.0.5-CVE-2007-5226.patch
blob: 1d9994228bd2c112eed67593c0f882db36b8f5b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -u dircproxy-1.0.5/src/irc_server.c dircproxy-1.0.5/src/irc_server.c
--- dircproxy-1.0.5/src/irc_server.c
+++ dircproxy-1.0.5/src/irc_server.c
@@ -1078,7 +1078,7 @@
       
         if (!strcmp(cmsg.cmd, "ACTION")) {
           if (p->conn_class->log_events & IRC_LOG_ACTION)
-            irclog_ctcp(p, msg.params[0], msg.src.orig, "%s", cmsg.orig);
+            irclog_ctcp(p, (msg.params != NULL ) ? msg.params[0]: "none", msg.src.orig, "%s", cmsg.orig);
 
         } else if (!strcmp(cmsg.cmd, "DCC")
                    && p->conn_class->dcc_proxy_incoming) {