From 7db531163eb4b619bd6163ca2747139b3eb96383 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 7 Feb 2014 16:37:38 +0100 Subject: [PATCH] smbd: Fix memory overwrites SIVAL writes 32 bit, not 16 Signed-off-by: Volker Lendecke --- source3/smbd/smb2_ioctl_network_fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/smb2_ioctl_network_fs.c b/source3/smbd/smb2_ioctl_network_fs.c index 1e1e3e5..84cf88c 100644 --- a/source3/smbd/smb2_ioctl_network_fs.c +++ b/source3/smbd/smb2_ioctl_network_fs.c @@ -394,8 +394,8 @@ static NTSTATUS fsctl_validate_neg_info(TALLOC_CTX *mem_ctx, SIVAL(out_output->data, 0x00, conn->smb2.server.capabilities); memcpy(out_output->data+0x04, out_guid_blob.data, 16); - SIVAL(out_output->data, 0x14, conn->smb2.server.security_mode); - SIVAL(out_output->data, 0x16, conn->smb2.server.dialect); + SVAL(out_output->data, 0x14, conn->smb2.server.security_mode); + SVAL(out_output->data, 0x16, conn->smb2.server.dialect); return NT_STATUS_OK; } -- 1.7.9.5