summaryrefslogtreecommitdiff
path: root/src/irc/dcc
diff options
context:
space:
mode:
authorNei <ailin.nemui@gmail.com>2017-05-30 19:39:06 +0000
committerNei <ailin.nemui@gmail.com>2017-05-30 19:39:06 +0000
commit200eb5922e23050d19e0a6cf88b1d3dbc8c93110 (patch)
tree26c59304fc741975027486dbdf1c4cf01d5e4f08 /src/irc/dcc
parent84503427b072e5bb2830cd6a5b63849785587f41 (diff)
parent528f51bfbe5c65c5b24546faa244009dd5b3c586 (diff)
downloadirssi-200eb5922e23050d19e0a6cf88b1d3dbc8c93110.zip
Merge branch 'fix-gl9' into 'security'
Fix dcc_request where addr is NULL See merge request !13
Diffstat (limited to 'src/irc/dcc')
-rw-r--r--src/irc/dcc/dcc-get.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-get.c b/src/irc/dcc/dcc-get.c
index eff516db..107f68fa 100644
--- a/src/irc/dcc/dcc-get.c
+++ b/src/irc/dcc/dcc-get.c
@@ -430,6 +430,10 @@ static void ctcp_msg_dcc_send(IRC_SERVER_REC *server, const char *data,
int p_id = -1;
int passive = FALSE;
+ if (addr == NULL) {
+ addr = "";
+ }
+
/* SEND <file name> <address> <port> <size> [...] */
/* SEND <file name> <address> 0 <size> <id> (DCC SEND passive protocol) */
params = g_strsplit(data, " ", -1);