diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/time.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c index b4477d693a..192a418e7a 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -223,6 +223,12 @@ static struct timespec nt_time_to_unix_timespec(NTTIME *nt) return ret; } + if ((nt->high == 0x7fffffff) && (nt->low == 0xffffffff)) { + ret.tv_sec = TIME_T_MAX; + ret.tv_nsec = 0; + return ret; + } + d = (((uint64)nt->high) << 32 ) + ((uint64)nt->low); /* d is now in 100ns units, since jan 1st 1601". Save off the ns fraction. */ |