FreeRDP#5329 if using OldLicenseBehaviour, don't try to save the Cal since we're not going to try to load it (#5330)

This commit is contained in:
byteboon 2019-04-08 00:42:02 -07:00 committed by akallabeth
parent 967f2aefac
commit df280a7ffd
1 changed files with 4 additions and 1 deletions

View File

@ -1267,7 +1267,10 @@ BOOL license_read_new_or_upgrade_license_packet(rdpLicense* license, wStream* s)
goto out_free_stream;
license->state = LICENSE_STATE_COMPLETED;
ret = saveCal(license->rdp->settings, Stream_Pointer(licenseStream), cbLicenseInfo, license->rdp->settings->ClientHostname);
ret = TRUE;
if (!license->rdp->settings->OldLicenseBehaviour)
ret = saveCal(license->rdp->settings, Stream_Pointer(licenseStream), cbLicenseInfo, license->rdp->settings->ClientHostname);
out_free_stream:
Stream_Free(licenseStream, FALSE);