Commit 1410f6a1 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

When creating an aggregate credential, pad the expiration time out

a little bit to avoid a race at the very end of time, when trying to
unregister a sliver from the SA.
parent 907dadc4
......@@ -659,6 +659,9 @@ sub NewCredential($$)
print STDERR "Could not create credential for $self, $owner\n";
return undef;
}
# Bump expiration to avoid race with aggregate about to expire.
$credential->SetExpiration(str2time($self->expires()) + (24 * 3600));
if (defined($self->nickname())) {
$credential->AddExtension("nickname", $self->nickname());
}
......
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