diff options
Diffstat (limited to 'source3/smbd/lanman.c')
-rw-r--r-- | source3/smbd/lanman.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 4d4d9d22591..7d1a2ade544 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -2212,6 +2212,9 @@ static BOOL api_NetRemoteTOD(connection_struct *conn,uint16 vuid, char *param,ch /* the client expects to get localtime, not GMT, in this bit (I think, this needs testing) */ t = localtime(&unixdate); + if (!t) { + return False; + } SIVAL(p,4,0); /* msecs ? */ SCVAL(p,8,t->tm_hour); |