aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
diff options
context:
space:
mode:
authorDiva Canto2012-12-09 15:31:50 -0800
committerDiva Canto2012-12-09 15:31:50 -0800
commit39b388a094aaf028e5f482885b98a2589c9434fe (patch)
tree59967bcfb070252f28cc344a6fd9ef9987d5dd61 /OpenSim/Data/MSSQL/MSSQLPresenceData.cs
parentUserManagementModule: search the local cache for names too. (diff)
parentRestrict IPresenceData.VerifyAgent (diff)
downloadopensim-SC-39b388a094aaf028e5f482885b98a2589c9434fe.zip
opensim-SC-39b388a094aaf028e5f482885b98a2589c9434fe.tar.gz
opensim-SC-39b388a094aaf028e5f482885b98a2589c9434fe.tar.bz2
opensim-SC-39b388a094aaf028e5f482885b98a2589c9434fe.tar.xz
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLPresenceData.cs')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLPresenceData.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLPresenceData.cs b/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
index 5f495ae..0c71e79 100644
--- a/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
@@ -100,16 +100,18 @@ namespace OpenSim.Data.MSSQL
100 return true; 100 return true;
101 } 101 }
102 102
103 public PresenceData VerifyAgent(UUID secureSessionID) 103 public bool VerifyAgent(UUID agentId, UUID secureSessionID)
104 { 104 {
105 PresenceData[] ret = Get("SecureSessionID", 105 PresenceData[] ret = Get("SecureSessionID",
106 secureSessionID.ToString()); 106 secureSessionID.ToString());
107 107
108 if (ret.Length == 0) 108 if (ret.Length == 0)
109 return null; 109 return false;
110 110
111 return ret[0]; 111 if(ret[0].UserID != agentId.ToString())
112 } 112 return false;
113 113
114 return true;
115 }
114 } 116 }
115} 117}