aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2013-01-26 03:54:18 +0500
committerWaqas Hussain <waqas20@gmail.com>2013-01-26 03:54:18 +0500
commitf3f1a3c44ece8b6cfbad0cb0f73cfac9f38bc72c (patch)
treed762526428c8cc661ffc40a29ee5130435f2525c /util/pubsub.lua
parent40bfc76ff8bfc16a5097240657ef447c4a232c08 (diff)
downloadprosody-f3f1a3c44ece8b6cfbad0cb0f73cfac9f38bc72c.tar.gz
prosody-f3f1a3c44ece8b6cfbad0cb0f73cfac9f38bc72c.zip
util.pubsub: Fix nil access error in get_subscriptions.
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index c77140b9..3d97d4ed 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -338,7 +338,7 @@ function service:get_subscriptions(node, actor, jid)
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];
};