diff options
Diffstat (limited to 'crypto/asymmetric_keys/x509_cert_parser.c')
-rw-r--r-- | crypto/asymmetric_keys/x509_cert_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asymmetric_keys/x509_cert_parser.c b/crypto/asymmetric_keys/x509_cert_parser.c index 794cf0eac2c9..99ff5382b627 100644 --- a/crypto/asymmetric_keys/x509_cert_parser.c +++ b/crypto/asymmetric_keys/x509_cert_parser.c | |||
@@ -527,7 +527,7 @@ int x509_decode_time(time64_t *_t, size_t hdrlen, | |||
527 | if (day < 1 || day > mon_len || | 527 | if (day < 1 || day > mon_len || |
528 | hour > 23 || | 528 | hour > 23 || |
529 | min > 59 || | 529 | min > 59 || |
530 | sec > 59) | 530 | sec > 60) /* ISO 8601 permits leap seconds [X.680 46.3] */ |
531 | goto invalid_time; | 531 | goto invalid_time; |
532 | 532 | ||
533 | *_t = mktime64(year, mon, day, hour, min, sec); | 533 | *_t = mktime64(year, mon, day, hour, min, sec); |