summaryrefslogtreecommitdiff
path: root/enterprise.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'enterprise.cpp')
-rw-r--r--enterprise.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/enterprise.cpp b/enterprise.cpp
index e15a4691..bf68378a 100644
--- a/enterprise.cpp
+++ b/enterprise.cpp
@@ -235,7 +235,8 @@ BinaryNinja::EnterpriseServer::LicenseCheckout::LicenseCheckout(int64_t duration
}
// Keychain auth can activate a license if we have one in the keychain
- if (!IsLicenseStillActivated())
+ // If we have an expired named license, try to get a fresh floating one
+ if (!IsLicenseStillActivated() || (!IsFloatingLicense() && BNGetLicenseExpirationTime() < time(nullptr)))
{
if (!EnterpriseServer::AcquireLicense(duration))
{