mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Back out timegm error check from r272562.
POSIX treats negative time_t as undefined (i.e. may be valid too, depends on system's policy we don't have) and we don't set EOVERFLOW in mktime/timegm as POSIX requires to surely distinguish -1 return as valid negative time from -1 as error return.
This commit is contained in:
parent
af1360206c
commit
e15d3f3c09
1 changed files with 0 additions and 2 deletions
|
|
@ -676,8 +676,6 @@ strptime_l(const char * __restrict buf, const char * __restrict fmt,
|
|||
if (ret && gmt) {
|
||||
time_t t = timegm(tm);
|
||||
|
||||
if (t == -1)
|
||||
return (NULL);
|
||||
localtime_r(&t, tm);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue