summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2013-05-12 11:52:49 +0200
committerSjoerd Simons <sjoerd@luon.net>2013-05-12 11:52:49 +0200
commit68f8a01b0d03ddac1cca102283c79fac907fa388 (patch)
tree9b9880097ed55a9a5151fcc219449cb708a00f68
parentcc3e137f084147cd39d4621db5b1de88b3e0b82a (diff)
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..
-rw-r--r--src/idle-muc-manager.c2
1 files changed, 1 insertions, 1 deletions
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);
}