From 5f0e581c9aa979ba03a8f6f83d15b122442dbdc2 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 6 May 2011 02:10:02 +0300 Subject: [PATCH 3/3] Handle empty RPL_WHOISCHANNELS in response to RequestContactInfo The message format is defined as "IIIc." as specified in RFC 2812. Therefore, even though IRC daemons (eg., Freenode, GIMPNet and IRCNet) do not seem to be sending empty RPL_WHOISCHANNELS we should be able to deal with them. Fixes: https://bugs.freedesktop.org/34796 --- src/idle-contact-info.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/idle-contact-info.c b/src/idle-contact-info.c index 987ec30..1aa86eb 100644 --- a/src/idle-contact-info.c +++ b/src/idle-contact-info.c @@ -281,6 +281,9 @@ static IdleParserHandlerResult _whois_channels_handler(IdleParser *parser, IdleP if (!_is_valid_response(conn, args)) return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED; + if (args->n_values != 2) + return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED; + request = g_queue_peek_head(conn->contact_info_requests); if (request->contact_info == NULL) -- 1.7.4.4