mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 23:21:19 +02:00
- ftp bugfix for a segfault discovered
This commit is contained in:
@@ -166,6 +166,7 @@ int ServerInterface::isValidClientType(uint32 clientIp) {
|
|||||||
MutexSafeWrapper safeMutex(&slotAccessorMutexes[i],intToStr(__LINE__) + "_" + intToStr(i) + "_" + intToStr(i));
|
MutexSafeWrapper safeMutex(&slotAccessorMutexes[i],intToStr(__LINE__) + "_" + intToStr(i) + "_" + intToStr(i));
|
||||||
|
|
||||||
Socket *socket = slots[i]->getSocket();
|
Socket *socket = slots[i]->getSocket();
|
||||||
|
if(socket != NULL) {
|
||||||
uint32 slotIp = socket->getConnectedIPAddress(socket->getIpAddress());
|
uint32 slotIp = socket->getConnectedIPAddress(socket->getIpAddress());
|
||||||
if(slotIp == clientIp) {
|
if(slotIp == clientIp) {
|
||||||
result = 1;
|
result = 1;
|
||||||
@@ -173,6 +174,7 @@ int ServerInterface::isValidClientType(uint32 clientIp) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user