Ensure RemoteAddrString is nulled out just in case LiStopConnection() is called

This commit is contained in:
Cameron Gutman 2018-11-21 21:31:18 -08:00
parent 639ff18dbb
commit e741a12a25

View File

@ -180,6 +180,7 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre
if (StreamConfig.packetSize == 0) {
Limelog("Invalid packet size specified\n");
free(RemoteAddrString);
RemoteAddrString = NULL;
return -1;
}
@ -188,6 +189,7 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre
AppVersionQuad) < 0) {
Limelog("Invalid appversion string: %s\n", serverInfo->serverInfoAppVersion);
free(RemoteAddrString);
RemoteAddrString = NULL;
return -1;
}