diff options
Diffstat (limited to 'source3/lib/time.c')
-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 c7ccb79bfb..9714d4b9f8 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -304,6 +304,12 @@ void unix_to_nt_time(NTTIME *nt, time_t t) nt->high = 0; return; } + if (t == -1) + { + nt->low = 0xffffffff; + nt->high = 0xffffffff; + return; + } /* this converts GMT to kludge-GMT */ t -= LocTimeDiff(t) - serverzone; |