Commit 654cf91d authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fix to NewCredential() expiration time.

parent c973baee
......@@ -660,7 +660,7 @@ sub NewCredential($$)
return undef;
}
# Bump expiration to avoid race with aggregate about to expire.
$credential->SetExpiration(str2time($self->expires()) + (24 * 3600));
$credential->SetExpiration(time() + (24 * 3600));
if (defined($self->nickname())) {
$credential->AddExtension("nickname", $self->nickname());
......
Markdown is supported
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