mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 15:11:20 +02:00
- ftp bugfix for a segfault discovered
This commit is contained in:
@@ -166,10 +166,12 @@ 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();
|
||||||
uint32 slotIp = socket->getConnectedIPAddress(socket->getIpAddress());
|
if(socket != NULL) {
|
||||||
if(slotIp == clientIp) {
|
uint32 slotIp = socket->getConnectedIPAddress(socket->getIpAddress());
|
||||||
result = 1;
|
if(slotIp == clientIp) {
|
||||||
break;
|
result = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user