summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-10 14:01:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:10:00 -0500
commit5468516f9af10cb3c67bc93c610c22b5383e20db (patch)
treecc2b84121234dd1e9ead2ae6839eb20213515f7f /source4/libcli/raw
parentfabc6ae74ded03faac1ed23d79a61e205cd78daa (diff)
downloadsamba-5468516f9af10cb3c67bc93c610c22b5383e20db.tar.gz
samba-5468516f9af10cb3c67bc93c610c22b5383e20db.tar.bz2
samba-5468516f9af10cb3c67bc93c610c22b5383e20db.zip
r16918: the SMB2 Ioctls are sometimes called with a wildcard handle
the operation doesn't need a valid file handle in that case metze (This used to be commit d41a83d55945b07020349339888f3a34ac4eff4e)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r--source4/libcli/raw/interfaces.h3
-rw-r--r--source4/libcli/raw/rawioctl.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/raw/interfaces.h b/source4/libcli/raw/interfaces.h
index 27b3510371..8ebdd38bee 100644
--- a/source4/libcli/raw/interfaces.h
+++ b/source4/libcli/raw/interfaces.h
@@ -1949,7 +1949,8 @@ union smb_lpq {
enum smb_ioctl_level {
RAW_IOCTL_IOCTL,
RAW_IOCTL_NTIOCTL,
- RAW_IOCTL_SMB2
+ RAW_IOCTL_SMB2,
+ RAW_IOCTL_SMB2_NO_HANDLE
};
/*
diff --git a/source4/libcli/raw/rawioctl.c b/source4/libcli/raw/rawioctl.c
index 0bd37785ac..a9812022ea 100644
--- a/source4/libcli/raw/rawioctl.c
+++ b/source4/libcli/raw/rawioctl.c
@@ -134,6 +134,7 @@ struct smbcli_request *smb_raw_ioctl_send(struct smbcli_tree *tree, union smb_io
break;
case RAW_IOCTL_SMB2:
+ case RAW_IOCTL_SMB2_NO_HANDLE:
return NULL;
}
@@ -154,6 +155,7 @@ NTSTATUS smb_raw_ioctl_recv(struct smbcli_request *req,
return smb_raw_ntioctl_recv(req, mem_ctx, parms);
case RAW_IOCTL_SMB2:
+ case RAW_IOCTL_SMB2_NO_HANDLE:
break;
}
return NT_STATUS_INVALID_LEVEL;