mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-16 22:00:55 +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) {
|
if (StreamConfig.packetSize == 0) {
|
||||||
Limelog("Invalid packet size specified\n");
|
Limelog("Invalid packet size specified\n");
|
||||||
free(RemoteAddrString);
|
free(RemoteAddrString);
|
||||||
|
RemoteAddrString = NULL;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,6 +189,7 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre
|
|||||||
AppVersionQuad) < 0) {
|
AppVersionQuad) < 0) {
|
||||||
Limelog("Invalid appversion string: %s\n", serverInfo->serverInfoAppVersion);
|
Limelog("Invalid appversion string: %s\n", serverInfo->serverInfoAppVersion);
|
||||||
free(RemoteAddrString);
|
free(RemoteAddrString);
|
||||||
|
RemoteAddrString = NULL;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user