Skip to content

Commit 52a403a

Browse files
committed
fix: handle optional next update for crl
Signed-off-by: Rudrakh Panigrahi <[email protected]>
1 parent 9935819 commit 52a403a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/gatewayapi/tls.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func validateCrl(data []byte) error {
129129
return fmt.Errorf("failed to parse CRL: %w", err)
130130
}
131131
now := time.Now()
132-
if now.After(crl.NextUpdate) {
132+
if !crl.NextUpdate.IsZero() && now.After(crl.NextUpdate) {
133133
return fmt.Errorf("CRL is expired (next update was due at %v)", crl.NextUpdate)
134134
}
135135
if now.Before(crl.ThisUpdate) {

0 commit comments

Comments
 (0)