[coverity] 1543164 Free of address-of expression

This commit is contained in:
akallabeth 2024-04-11 10:20:25 +02:00 committed by akallabeth
parent 9768a5f48f
commit 2fefc29249

View File

@ -1114,10 +1114,9 @@ BOOL license_generate_hwid(rdpLicense* license)
const char* hostname = license->rdp->settings->ClientHostname;
wStream* s = Stream_StaticInit(&buffer, license->HardwareId, 4);
Stream_Write_UINT32(s, license->PlatformId);
Stream_Free(s, TRUE);
hashTarget = (const BYTE*)hostname;
targetLen = strlen(hostname);
targetLen = hostname ? strlen(hostname) : 0;
}
/* Allow FIPS override for use of MD5 here, really this does not have to be MD5 as we are just