[coverity] 1543141 Dereference null return value

This commit is contained in:
akallabeth 2024-04-12 08:54:15 +02:00 committed by akallabeth
parent dba673b678
commit f81ff8c495

View File

@ -1722,14 +1722,15 @@ void license_free_scope_list(SCOPE_LIST* scopeList)
BOOL license_send_license_info(rdpLicense* license, const LICENSE_BLOB* calBlob,
const BYTE* signature, size_t signature_length)
{
wStream* s = license_send_stream_init(license);
WINPR_ASSERT(calBlob);
WINPR_ASSERT(signature);
WINPR_ASSERT(license->certificate);
const rdpCertInfo* info = freerdp_certificate_get_info(license->certificate);
if (!info)
return FALSE;
wStream* s = license_send_stream_init(license);
if (!s)
return FALSE;