summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-11-15 12:24:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:51 -0500
commite2bc9a47c0380322b05018412958ed45f4283838 (patch)
treef83fc87dc2eb89af51f5377b91a72853b2b74768 /source4/smb_server
parent79ebe463e2aed9125c9086f6bff99adeef5e4b88 (diff)
downloadsamba-e2bc9a47c0380322b05018412958ed45f4283838.tar.gz
samba-e2bc9a47c0380322b05018412958ed45f4283838.tar.bz2
samba-e2bc9a47c0380322b05018412958ed45f4283838.zip
r3756: Fix netbios session request reply. The buffer should not be a stack-based
variable that is overwritten later. Samba3 smbclient still does not like Samba4. In ntlmssp samba3 smbclient expects an mechlistmic that 4 does not send. Volker (This used to be commit 614dbd8fec09a5e4c63e4b7774aa38335e030a42)
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c
index 9b3675aeac..7b33f4334b 100644
--- a/source4/smb_server/reply.c
+++ b/source4/smb_server/reply.c
@@ -2369,7 +2369,7 @@ void reply_sendtxt(struct smbsrv_request *req)
void reply_special(struct smbsrv_request *req)
{
uint8_t msg_type;
- char buf[4];
+ char *buf = talloc_zero_array_p(req, char, 4);
msg_type = CVAL(req->in.buffer,0);