1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge branch 'fix-gl9' into 'security'

Fix dcc_request where addr is NULL

See merge request !13
This commit is contained in:
Nei 2017-05-30 19:39:06 +00:00
commit 200eb5922e

View File

@ -430,6 +430,10 @@ static void ctcp_msg_dcc_send(IRC_SERVER_REC *server, const char *data,
int p_id = -1; int p_id = -1;
int passive = FALSE; int passive = FALSE;
if (addr == NULL) {
addr = "";
}
/* SEND <file name> <address> <port> <size> [...] */ /* SEND <file name> <address> <port> <size> [...] */
/* SEND <file name> <address> 0 <size> <id> (DCC SEND passive protocol) */ /* SEND <file name> <address> 0 <size> <id> (DCC SEND passive protocol) */
params = g_strsplit(data, " ", -1); params = g_strsplit(data, " ", -1);