summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-01-15 04:57:54 +0000
committerJeremy Allison <jra@samba.org>1998-01-15 04:57:54 +0000
commit7ab9d270fe9fcc0360672ff8e163aba985c69aea (patch)
treea9021379906b8da054c8cb3b9678eb2d789ca7ac /source3/smbd/server.c
parent5dd1eb4e32f95bd1d8f5da3ca30c7a0fc4ef87c0 (diff)
downloadsamba-7ab9d270fe9fcc0360672ff8e163aba985c69aea.tar.gz
samba-7ab9d270fe9fcc0360672ff8e163aba985c69aea.tar.bz2
samba-7ab9d270fe9fcc0360672ff8e163aba985c69aea.zip
reply.c: Added timestamp to attack warning.
server.c: Fixed security=share problem where the vuid was still being looked at. Jeremy. (This used to be commit ab8d615fe2004c3ca93dd2978ba988ea89d7fd74)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 3c40e9800f..aaf446bdf5 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -4681,6 +4681,8 @@ static int switch_message(int type,char *inbuf,char *outbuf,int size,int bufsize
int flags = smb_messages[match].flags;
/* In share mode security we must ignore the vuid. */
uint16 session_tag = (lp_security() == SEC_SHARE) ? UID_FIELD_INVALID : SVAL(inbuf,smb_uid);
+ /* Ensure this value is replaced in the incoming packet. */
+ SSVAL(inbuf,smb_uid,session_tag);
/* does this protocol need to be run as root? */
if (!(flags & AS_USER))