aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteUserData.cs
diff options
context:
space:
mode:
authorSean Dague2008-10-16 15:57:59 +0000
committerSean Dague2008-10-16 15:57:59 +0000
commit72725a08940cb087e54ddb847224c0039e5d617b (patch)
treebd932008c5f6ee38f7120efa4b795ee38d951ddb /OpenSim/Data/SQLite/SQLiteUserData.cs
parentUpdated 32Bit launcher so it works in Visual Studio again. (So developers on ... (diff)
downloadopensim-SC-72725a08940cb087e54ddb847224c0039e5d617b.zip
opensim-SC-72725a08940cb087e54ddb847224c0039e5d617b.tar.gz
opensim-SC-72725a08940cb087e54ddb847224c0039e5d617b.tar.bz2
opensim-SC-72725a08940cb087e54ddb847224c0039e5d617b.tar.xz
- Enforced no user or agent with UUID 0 on agent DB insertion
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteUserData.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteUserData.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs
index 448ef85..94dc1d3 100644
--- a/OpenSim/Data/SQLite/SQLiteUserData.cs
+++ b/OpenSim/Data/SQLite/SQLiteUserData.cs
@@ -567,6 +567,10 @@ namespace OpenSim.Data.SQLite
567 /// <param name="agent">The agent to add to the database</param> 567 /// <param name="agent">The agent to add to the database</param>
568 override public void AddNewUserAgent(UserAgentData agent) 568 override public void AddNewUserAgent(UserAgentData agent)
569 { 569 {
570 UUID zero = UUID.Zero;
571 if (agent.SessionID == zero || agent.ProfileID == zero)
572 return;
573
570 DataTable agents = ds.Tables["useragents"]; 574 DataTable agents = ds.Tables["useragents"];
571 lock (ds) 575 lock (ds)
572 { 576 {