1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

check the paramcount for DCC RESUME more strictly

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4244 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Valentin Batz 2006-02-17 23:07:02 +00:00 committed by vb
parent 945d10ebb7
commit 39d58af912

View File

@ -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);