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/MySQL/MySQLUserData.cs | |
parent | Updated 32Bit launcher so it works in Visual Studio again. (So developers on ... (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserData.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index 3a088cf..ecd534a 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs | |||
@@ -617,6 +617,10 @@ namespace OpenSim.Data.MySQL | |||
617 | /// <param name="agent">The agent to create</param> | 617 | /// <param name="agent">The agent to create</param> |
618 | public override void AddNewUserAgent(UserAgentData agent) | 618 | public override void AddNewUserAgent(UserAgentData agent) |
619 | { | 619 | { |
620 | UUID zero = UUID.Zero; | ||
621 | if (agent.ProfileID == zero || agent.SessionID == zero) | ||
622 | return; | ||
623 | |||
620 | MySQLSuperManager dbm = GetLockedConnection(); | 624 | MySQLSuperManager dbm = GetLockedConnection(); |
621 | try | 625 | try |
622 | { | 626 | { |