Commit 1087d5aa authored by Mike Hibler's avatar Mike Hibler

Allow SetEnd to accept 0 as a time.

parent a67fbdd0
......@@ -1549,7 +1549,7 @@ sub SetEndTime($$) {
return LEASE_ERROR_FAILED()
if (!ref($self));
if ($ntime < time()) {
if ($ntime != 0 && $ntime < time()) {
print STDERR "Lease->SetEndTime: Can't move lease end time into the past.\n";
return LEASE_ERROR_FAILED();
}
......
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