diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-14 10:17:12 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-14 10:17:12 +0000 |
commit | 657fc8882eb149cdae6823353728024c921fa608 (patch) | |
tree | bee63bbb9face729f9ecdc5e06eb64d8f42f6ca0 /source3 | |
parent | 9f6a10d173713677a929a2ffe0bc2a7f1a2ed229 (diff) | |
download | samba-657fc8882eb149cdae6823353728024c921fa608.tar.gz samba-657fc8882eb149cdae6823353728024c921fa608.tar.bz2 samba-657fc8882eb149cdae6823353728024c921fa608.zip |
changed *(uint32*)(clnt_cred) to SIVAL(clnt_cred, ....)
(This used to be commit 0056b154435e9d2a3fd2be37f7c3afd9e3fbfd87)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/pipenetlog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/pipenetlog.c b/source3/pipenetlog.c index b4f0db766b..861bae3809 100644 --- a/source3/pipenetlog.c +++ b/source3/pipenetlog.c @@ -379,6 +379,7 @@ static BOOL deal_with_credentials(user_struct *vuser, DOM_CRED *clnt_cred, DOM_CRED *srv_cred) { UTIME new_clnt_time; + uint32 new_cred; /* doesn't matter that server time is 0 */ srv_cred->timestamp.time = 0; @@ -398,7 +399,9 @@ static BOOL deal_with_credentials(user_struct *vuser, &(srv_cred->challenge)); /* update the client and server credentials, for use next time... */ - *(uint32*)(vuser->dc.srv_cred.data) = ( *(uint32*)(vuser->dc.clnt_cred.data) += new_clnt_time.time ); + new_cred = IVAL(vuser->dc.clnt_cred.data, 0) + new_clnt_time.time; + SIVAL(vuser->dc.clnt_cred.data, new_cred, 0); + SIVAL(vuser->dc.srv_cred.data , new_cred, 0); return True; } |