summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-04-18 12:36:19 -0700
committerJeremy Allison <jra@samba.org>2012-04-18 12:38:52 -0700
commit124be4cf8830c149076b7007b15f43f184a6e531 (patch)
treee680d4df2ebcc0cc8e4ea9db6b3160e81c31c9b6 /source3/smbd
parentb0aaa49e3fd25261500c9367fd59ff02d20af2f0 (diff)
downloadsamba-124be4cf8830c149076b7007b15f43f184a6e531.tar.gz
samba-124be4cf8830c149076b7007b15f43f184a6e531.tar.bz2
samba-124be4cf8830c149076b7007b15f43f184a6e531.zip
Ensure we have 12 bytes of data for a SMB_SET_CIFS_UNIX_INFO call. Add debug.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index dcf771a5b9..63ee76bce9 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -3648,13 +3648,16 @@ static void call_trans2setfsinfo(connection_struct *conn,
switch(info_level) {
case SMB_SET_CIFS_UNIX_INFO:
if (!lp_unix_extensions()) {
+ DEBUG(2,("call_trans2setfsinfo: "
+ "SMB_SET_CIFS_UNIX_INFO is invalid with "
+ "unix extensions off\n"));
reply_nterror(req,
NT_STATUS_INVALID_LEVEL);
return;
}
/* There should be 12 bytes of capabilities set. */
- if (total_data < 8) {
+ if (total_data < 12) {
reply_nterror(
req,
NT_STATUS_INVALID_PARAMETER);