FreeRDP#5329 if using OldLicenseBehaviour, don't try to save the Cal since we're not going to try to load it
@@ -1267,6 +1267,9 @@ BOOL license_read_new_or_upgrade_license_packet(rdpLicense* license, wStream* s)
goto out_free_stream;
license->state = LICENSE_STATE_COMPLETED;
+
+ ret = TRUE;
+ if (!license->rdp->settings->OldLicenseBehaviour)
ret = saveCal(license->rdp->settings, Stream_Pointer(licenseStream), cbLicenseInfo, license->rdp->settings->ClientHostname);
out_free_stream:
