diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-20 17:53:39 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-20 17:53:39 +0500 |
commit | c0eca64393beb57de2e4482b81a87ffffbf213dc (patch) | |
tree | cf60bacdd334e8d455647227346ee79c7256f1fa | |
parent | 2c226d62190343bfbc4b8cdaffc51bae67a358f3 (diff) | |
download | prosody-c0eca64393beb57de2e4482b81a87ffffbf213dc.tar.gz prosody-c0eca64393beb57de2e4482b81a87ffffbf213dc.zip |
stanza_router: Fixed a corner case where processing could continue after an error reply
-rw-r--r-- | core/stanza_router.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 78ebb7f3..a28110d5 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -54,6 +54,7 @@ function core_process_stanza(origin, stanza) and stanza.tags[1].attr.xmlns == "urn:ietf:params:xml:ns:xmpp-bind") then -- authenticated client isn't bound and current stanza is not a bind request origin.send(st.error_reply(stanza, "auth", "not-authorized")); -- FIXME maybe allow stanzas to account or server + return; end -- TODO also, stanzas should be returned to their original state before the function ends |