Changeset

5315:abf1a926d0da

util.pubsub: Fix nil access error in get_subscriptions.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 26 Jan 2013 03:54:18 +0500
parents 5314:e5e480d73066
children 5316:310c7e5bb906
files util/pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/pubsub.lua	Sat Jan 26 03:50:13 2013 +0500
+++ b/util/pubsub.lua	Sat Jan 26 03:54:18 2013 +0500
@@ -338,7 +338,7 @@
 			if node then -- Return only subscriptions to this node
 				if subscribed_nodes[node] then
 					ret[#ret+1] = {
-						node = subscribed_node;
+						node = subscribed_nodes[node];
 						jid = jid;
 						subscription = node_obj.subscribers[jid];
 					};