From 8efae93b51082e0af9048306ffa8ca82586969af Mon Sep 17 00:00:00 2001 From: BlueWall Date: Sun, 9 Dec 2012 15:08:32 -0500 Subject: Restrict IPresenceData.VerifyAgent Restrict IPresenceData.VerifyAgent to only return bool result --- OpenSim/Data/MySQL/MySQLPresenceData.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'OpenSim/Data/MySQL/MySQLPresenceData.cs') diff --git a/OpenSim/Data/MySQL/MySQLPresenceData.cs b/OpenSim/Data/MySQL/MySQLPresenceData.cs index 577a71a..3f90639 100644 --- a/OpenSim/Data/MySQL/MySQLPresenceData.cs +++ b/OpenSim/Data/MySQL/MySQLPresenceData.cs @@ -96,15 +96,18 @@ namespace OpenSim.Data.MySQL return true; } - public PresenceData VerifyAgent(UUID secureSessionID) + public bool VerifyAgent(UUID agentId, UUID secureSessionID) { PresenceData[] ret = Get("SecureSessionID", secureSessionID.ToString()); if (ret.Length == 0) - return null; + return false; - return ret[0]; + if(ret[0].UserID != agentId.ToString()) + return false; + + return true; } } } \ No newline at end of file -- cgit v1.1