mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-04 23:06:03 +00:00
Ensure RemoteAddrString is nulled out just in case LiStopConnection() is called
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user