Software /
code /
prosody
Changeset
1368:0cb70958b8fb
stanza_router: Fixed a corner case where processing could continue after an error reply
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 20 Jun 2009 17:53:39 +0500 (2009-06-20) |
parents | 1367:e4d660e58dfc |
children | 1369:633e032a3b4b |
files | core/stanza_router.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/stanza_router.lua Sat Jun 20 17:51:00 2009 +0500 +++ b/core/stanza_router.lua Sat Jun 20 17:53:39 2009 +0500 @@ -54,6 +54,7 @@ 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