mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-22 16:17:42 +00:00
Use existing cleanup path for handling early-out errors
This commit is contained in:
1 parent
e741a12a25
commit
e8dd103ed9
1 file changed
+4
-6
+4
-6
@@ -179,18 +179,16 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre
|
||||
|
||||
if (StreamConfig.packetSize == 0) {
|
||||
Limelog("Invalid packet size specified\n");
|
||||
free(RemoteAddrString);
|
||||
RemoteAddrString = NULL;
|
||||
return -1;
|
||||
err = -1;
|
||||
goto Cleanup;
|
||||
}
|
||||
|
||||
// Extract the appversion from the supplied string
|
||||
if (extractVersionQuadFromString(serverInfo->serverInfoAppVersion,
|
||||
AppVersionQuad) < 0) {
|
||||
Limelog("Invalid appversion string: %s\n", serverInfo->serverInfoAppVersion);
|
||||
free(RemoteAddrString);
|
||||
RemoteAddrString = NULL;
|
||||
return -1;
|
||||
err = -1;
|
||||
goto Cleanup;
|
||||
}
|
||||
|
||||
// Replace missing callbacks with placeholders
|
||||
|
||||
Reference in new issue
Block a user