diff options
author | Waqas Hussain <waqas20@gmail.com> | 2013-01-26 03:54:18 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2013-01-26 03:54:18 +0500 |
commit | c8529ea3ab6f37c22fa3573b27ec8a44a32806a6 (patch) | |
tree | d762526428c8cc661ffc40a29ee5130435f2525c /util | |
parent | 04f86293bd9156cc3dc1e9a2e96102682815cf92 (diff) | |
download | prosody-c8529ea3ab6f37c22fa3573b27ec8a44a32806a6.tar.gz prosody-c8529ea3ab6f37c22fa3573b27ec8a44a32806a6.zip |
util.pubsub: Fix nil access error in get_subscriptions.
Diffstat (limited to 'util')
-rw-r--r-- | util/pubsub.lua | 2 |
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]; }; |