summaryrefslogtreecommitdiffstats
path: root/source
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
commitab8d615fe2004c3ca93dd2978ba988ea89d7fd74 (patch)
tree59c6b9230d1a04c6b33b1e8cbf28d1ba20ab6484 /source
parent129aab955c069206109461e31f2b0244d8586908 (diff)
downloadsamba-ab8d615fe2004c3ca93dd2978ba988ea89d7fd74.tar.gz
samba-ab8d615fe2004c3ca93dd2978ba988ea89d7fd74.tar.xz
samba-ab8d615fe2004c3ca93dd2978ba988ea89d7fd74.zip
reply.c: Added timestamp to attack warning.
server.c: Fixed security=share problem where the vuid was still being looked at. Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/smbd/reply.c2
-rw-r--r--source/smbd/server.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 7194f3b1446..b1caee10a22 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -55,7 +55,7 @@ report a possible attack via the password buffer overflow bug
****************************************************************************/
static void overflow_attack(int len)
{
- DEBUG(0,("ERROR: Invalid password length %d\n", len));
+ DEBUG(0,("%s: ERROR: Invalid password length %d\n", timestring(), len));
DEBUG(0,("your machine may be under attack by a user exploiting an old bug\n"));
DEBUG(0,("Attack was from IP=%s\n", client_addr()));
exit_server("possible attack");
diff --git a/source/smbd/server.c b/source/smbd/server.c
index 3c40e9800fa..aaf446bdf5a 100644
--- a/source/smbd/server.c
+++ b/source/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))