mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Ensure RemoteAddrString is nulled out just in case LiStopConnection() is called
This commit is contained in:
parent
639ff18dbb
commit
e741a12a25
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user