mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- ftp bugfix for a segfault discovered
This commit is contained in:
parent
1c78fca0fb
commit
31be2df752
@ -166,10 +166,12 @@ int ServerInterface::isValidClientType(uint32 clientIp) {
|
||||
MutexSafeWrapper safeMutex(&slotAccessorMutexes[i],intToStr(__LINE__) + "_" + intToStr(i) + "_" + intToStr(i));
|
||||
|
||||
Socket *socket = slots[i]->getSocket();
|
||||
uint32 slotIp = socket->getConnectedIPAddress(socket->getIpAddress());
|
||||
if(slotIp == clientIp) {
|
||||
result = 1;
|
||||
break;
|
||||
if(socket != NULL) {
|
||||
uint32 slotIp = socket->getConnectedIPAddress(socket->getIpAddress());
|
||||
if(slotIp == clientIp) {
|
||||
result = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user