From 68f8a01b0d03ddac1cca102283c79fac907fa388 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sun, 12 May 2013 11:52:49 +0200 Subject: [PATCH] Don't crash when a channel with multiple requests fails The iteration over the channel requests tokens accidentally used the wrong variable, causing the same request token to be passed into tp-glib all the time causing crashes.. --- src/idle-muc-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idle-muc-manager.c b/src/idle-muc-manager.c index faf66e9..fdff375 100644 --- a/src/idle-muc-manager.c +++ b/src/idle-muc-manager.c @@ -741,7 +741,7 @@ static void _channel_join_ready_cb(IdleMUCChannel *chan, guint err, gpointer use break; } - for (l = reqs; reqs != NULL; reqs = reqs->next) { + for (l = reqs; l != NULL; l = l->next) { tp_channel_manager_emit_request_failed(manager, l->data, TP_ERROR, err_code, err_msg); } -- 1.7.10.4