aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server
diff options
context:
space:
mode:
authorDiva Canto2012-04-27 11:05:40 -0700
committerDiva Canto2012-04-27 11:05:40 -0700
commit9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c (patch)
tree1bbb171db676f32e279f8c36f1db578d0c2d01dd /OpenSim/Server
parentMapImage security issue. Compare strings instead of IPAddresses. (diff)
downloadopensim-SC_OLD-9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c.zip
opensim-SC_OLD-9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c.tar.gz
opensim-SC_OLD-9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c.tar.bz2
opensim-SC_OLD-9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c.tar.xz
MapImageService: changed the event at which the map tiles are uploaded, because they were being uploaded before the region was registered with the grid
Diffstat (limited to 'OpenSim/Server')
-rw-r--r--OpenSim/Server/Handlers/Map/MapAddServerConnector.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
index 8ba188d..4a61969 100644
--- a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
+++ b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
@@ -129,10 +129,10 @@ namespace OpenSim.Server.Handlers.MapImage
129 129
130 if (m_GridService != null) 130 if (m_GridService != null)
131 { 131 {
132 System.Net.IPAddress ipAddr = GetCallerIP(httpRequest);
132 GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, x * (int)Constants.RegionSize, y * (int)Constants.RegionSize); 133 GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, x * (int)Constants.RegionSize, y * (int)Constants.RegionSize);
133 if (r != null) 134 if (r != null)
134 { 135 {
135 System.Net.IPAddress ipAddr = GetCallerIP(httpRequest);
136 if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString()) 136 if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString())
137 { 137 {
138 m_log.WarnFormat("[MAP IMAGE HANDLER]: IP address {0} may be trying to impersonate region in IP {1}", ipAddr, r.ExternalEndPoint.Address); 138 m_log.WarnFormat("[MAP IMAGE HANDLER]: IP address {0} may be trying to impersonate region in IP {1}", ipAddr, r.ExternalEndPoint.Address);
@@ -143,7 +143,7 @@ namespace OpenSim.Server.Handlers.MapImage
143 else 143 else
144 { 144 {
145 m_log.WarnFormat("[MAP IMAGE HANDLER]: IP address {0} may be rogue. Region not found at coordinates {1}-{2}", 145 m_log.WarnFormat("[MAP IMAGE HANDLER]: IP address {0} may be rogue. Region not found at coordinates {1}-{2}",
146 httpRequest.RemoteIPEndPoint.Address, x, y); 146 ipAddr, x, y);
147 return FailureResult("Region not found at given coordinates"); 147 return FailureResult("Region not found at given coordinates");
148 } 148 }
149 } 149 }