mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-15 13:48:16 +00:00
handle cases where authenticationURL and authenticationExpiryTime don't exist
This commit is contained in:
@ -1325,8 +1325,16 @@ void EmbeddedNetworkController::_request(
|
|||||||
member["lastAuthorizedCredential"] = autoAuthCredential;
|
member["lastAuthorizedCredential"] = autoAuthCredential;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int64_t authenticationExpiryTime = member["authenticationExpiryTime"];
|
|
||||||
const std::string authenticationURL = member["authenticationURL"];
|
int64_t authenticationExpiryTime = 0;
|
||||||
|
if (!member["authenticationExpiryTime"].is_null()) {
|
||||||
|
authenticationExpiryTime = member["authenticationExpiryTime"];
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string authenticationURL = "";
|
||||||
|
if (!member["authenticationURL"].is_null()) {
|
||||||
|
authenticationURL = member["authenticationURL"];
|
||||||
|
}
|
||||||
|
|
||||||
if (authorized) {
|
if (authorized) {
|
||||||
// Update version info and meta-data if authorized and if this is a genuine request
|
// Update version info and meta-data if authorized and if this is a genuine request
|
||||||
|
Reference in New Issue
Block a user