Use existing cleanup path for handling early-out errors
This commit is contained in:
parent
e741a12a25
commit
e8dd103ed9
1 changed files with 4 additions and 6 deletions
|
|
@ -179,18 +179,16 @@ 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);
|
err = -1;
|
||||||
RemoteAddrString = NULL;
|
goto Cleanup;
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract the appversion from the supplied string
|
// Extract the appversion from the supplied string
|
||||||
if (extractVersionQuadFromString(serverInfo->serverInfoAppVersion,
|
if (extractVersionQuadFromString(serverInfo->serverInfoAppVersion,
|
||||||
AppVersionQuad) < 0) {
|
AppVersionQuad) < 0) {
|
||||||
Limelog("Invalid appversion string: %s\n", serverInfo->serverInfoAppVersion);
|
Limelog("Invalid appversion string: %s\n", serverInfo->serverInfoAppVersion);
|
||||||
free(RemoteAddrString);
|
err = -1;
|
||||||
RemoteAddrString = NULL;
|
goto Cleanup;
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replace missing callbacks with placeholders
|
// Replace missing callbacks with placeholders
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue