Commit 5e086066 authored by Rob Percival's avatar Rob Percival Committed by Rich Salz
Browse files

Cast time_t to uint64_t before converting to milliseconds in ct_policy.c

parent c22aa33e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -33,7 +33,9 @@ CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void)
    }

    // time(NULL) shouldn't ever fail, so don't bother checking for -1.
    ctx->epoch_time_in_ms = (time(NULL) + SCT_CLOCK_DRIFT_TOLERANCE) * 1000;
    ctx->epoch_time_in_ms = (uint64_t)(time(NULL) + SCT_CLOCK_DRIFT_TOLERANCE) *
            1000;

    return ctx;
}