Commit c2863915 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fix to allow extending slices that are expired (cause they were

locked down and didn't need to be).
parent e65a9eb2
......@@ -1556,7 +1556,13 @@ sub ExtendInternal($$$$)
$lockdown = 1
}
# Need to update slice before creating new credential.
$slice->AddToExpiration($seconds);
# Need to update slice before creating new credential.
if ($slice->IsExpired()) {
$slice->SetExpiration(time() + $seconds);
}
else {
$slice->AddToExpiration($seconds);
}
my $new_expires = $slice->ExpirationGMT();
my $coderef = sub {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment