X-Git-Url: http://git.samba.org/?p=samba.git;a=blobdiff_plain;f=source3%2Fsmbd%2Fserver.c;h=5ef92777b2432d0a9109d3853a25ed0f82a818f4;hp=00f8c9e0fd67ff434cfd555b916539eee343cab5;hb=1b87ef2440898e73f438f8816c8c3da5af6e7d66;hpb=5e1d10f20fb50e004a75f4a8f77f8634f301f0f8 diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 00f8c9e0fd6..5ef92777b24 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -2626,6 +2626,7 @@ int reply_nt1(char *outbuf) int capabilities=0x300; /* has dual names + lock_and_read */ int secword=0; BOOL doencrypt = SMBENCRYPT(); + time_t t = time(NULL); if (lp_security()>=SEC_USER) secword |= 1; if (doencrypt) secword |= 2; @@ -2660,8 +2661,8 @@ int reply_nt1(char *outbuf) SIVAL(outbuf,smb_vwv3+1,0xFFFF); /* max buffer */ SIVAL(outbuf,smb_vwv5+1,0xFFFF); /* raw size */ SIVAL(outbuf,smb_vwv9+1,capabilities); /* capabilities */ - put_long_date(outbuf+smb_vwv11+1,time(NULL)); - SSVALS(outbuf,smb_vwv15+1,TimeDiff(time(NULL))/60); + put_long_date(outbuf+smb_vwv11+1,t); + SSVALS(outbuf,smb_vwv15+1,TimeDiff(t)/60); return (smb_len(outbuf)+4); }