1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

irc: fix crash when malformed IRC message 352 (WHO) is received (bug #33790)

This commit is contained in:
Sebastien Helleu
2011-07-18 19:08:24 +02:00
parent 10024571ef
commit 5d5d2ce4d1
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -3395,9 +3395,10 @@ IRC_PROTOCOL_CALLBACK(352)
* :server 352 mynick #channel user host server nick (*) (H/G) :0 flashcode
*/
IRC_PROTOCOL_MIN_ARGS(9);
arg_start = (strcmp (argv[8], "*") == 0) ? 9 : 8;
IRC_PROTOCOL_MIN_ARGS(arg_start + 1);
if (argv[arg_start][0] == ':')
{
pos_attr = NULL;