This commit is contained in:
Erik Frojdh 2019-05-28 13:12:43 +02:00
parent 57170b1c80
commit e64f57ecac

View File

@ -620,7 +620,7 @@ int slsReceiverTCPIPInterface::set_detector_hostname(sls::ServerInterface2 &sock
// get args, return if socket crashed, ret is fail if receiver is not null
socket.receiveArg(ret, mess, hostname, MAX_STR_LENGTH);
if(server == nullptr){
if(receiver == nullptr){
NullObjectError(ret, mess);
return FAIL;
}