summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorValentin Batz <senneth@irssi.org>2006-02-17 23:07:02 +0000
committervb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564>2006-02-17 23:07:02 +0000
commit39d58af91216cc7ffd3c594aecfc6ee2361764d1 (patch)
tree0ad43a72e172732c10cd962853e3594b9b5e937c /src/irc
parent945d10ebb72147aa9cb1ddcf0a77e0b468c948c7 (diff)
downloadirssi-39d58af91216cc7ffd3c594aecfc6ee2361764d1.zip
check the paramcount for DCC RESUME more strictly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4244 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/dcc/dcc-resume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc-resume.c b/src/irc/dcc/dcc-resume.c
index ae070ac5..11a3996f 100644
--- a/src/irc/dcc/dcc-resume.c
+++ b/src/irc/dcc/dcc-resume.c
@@ -89,7 +89,7 @@ static int dcc_ctcp_resume_parse(int type, const char *data, const char *nick,
params = g_strsplit(data, " ", -1);
paramcount = strarray_length(params);
- if (paramcount < 3)
+ if (paramcount < 3 || paramcount > 4)
return 0;
fileparams = get_file_params_count_resume(params, paramcount);