diff options
author | Sean Dague | 2008-10-16 15:57:59 +0000 |
---|---|---|
committer | Sean Dague | 2008-10-16 15:57:59 +0000 |
commit | 72725a08940cb087e54ddb847224c0039e5d617b (patch) | |
tree | bd932008c5f6ee38f7120efa4b795ee38d951ddb /OpenSim/Data/SQLite | |
parent | Updated 32Bit launcher so it works in Visual Studio again. (So developers on ... (diff) | |
download | opensim-SC_OLD-72725a08940cb087e54ddb847224c0039e5d617b.zip opensim-SC_OLD-72725a08940cb087e54ddb847224c0039e5d617b.tar.gz opensim-SC_OLD-72725a08940cb087e54ddb847224c0039e5d617b.tar.bz2 opensim-SC_OLD-72725a08940cb087e54ddb847224c0039e5d617b.tar.xz |
- Enforced no user or agent with UUID 0 on agent DB insertion
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserData.cs | 4 |
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 | { |