mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
ssh: correct parse_cert_times case for hex "to" time
This appeared to be a copy-paste error from the "from" time case above. Reported by: Coverity Scan CID: 1500407 Reviewed by: markj MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37252
This commit is contained in:
parent
dabb3db7a8
commit
0657b2325d
|
@ -1975,7 +1975,7 @@ parse_cert_times(char *timespec)
|
|||
cert_valid_to = parse_relative_time(to, now);
|
||||
else if (strcmp(to, "forever") == 0)
|
||||
cert_valid_to = ~(u_int64_t)0;
|
||||
else if (strncmp(from, "0x", 2) == 0)
|
||||
else if (strncmp(to, "0x", 2) == 0)
|
||||
parse_hex_u64(to, &cert_valid_to);
|
||||
else if (parse_absolute_time(to, &cert_valid_to) != 0)
|
||||
fatal("Invalid to time \"%s\"", to);
|
||||
|
|
Loading…
Reference in a new issue