Commit 0f35b6c1 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Answer a not_acceptable error if no resource was not supplied during login. JM-243


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1235 b35dd754-fafc-0310-a699-88a17e54d16e
parent 664ee4c4
......@@ -178,6 +178,12 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo {
throw new IllegalArgumentException("Invalid resource: " + resource);
}
}
else {
// Answer a not_acceptable error since a resource was not supplied
response = IQ.createResultIQ(packet);
response.setChildElement(packet.getChildElement().createCopy());
response.setError(PacketError.Condition.not_acceptable);
}
// If a session already exists with the requested JID, then check to see
// if we should kick it off or refuse the new connection
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment