diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-10 10:27:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:58 -0500 |
commit | 627f49d8c95400cc041a61b0a6526ba5a0eb8b4b (patch) | |
tree | 100f1d64d1b1ef2361691c89d074b960f512cb0d /source4/smb_server | |
parent | 70b5c605c0b7decca818536c5434519a027b2a61 (diff) | |
download | samba-627f49d8c95400cc041a61b0a6526ba5a0eb8b4b.tar.gz samba-627f49d8c95400cc041a61b0a6526ba5a0eb8b4b.tar.xz samba-627f49d8c95400cc041a61b0a6526ba5a0eb8b4b.zip |
r16910: - don't search the wildcard handle
(a handle with all bits set to 1 is justed for some
SMB2 Ioctl calls...)
- don't crash if we didn't find the tcon
metze
(This used to be commit 27087818c7e8cbaadbcd640fe3b0ffc1c3455b04)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/smb2/tcon.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/tcon.c b/source4/smb_server/smb2/tcon.c index 28c505a1fd..38bf4d7ef0 100644 --- a/source4/smb_server/smb2/tcon.c +++ b/source4/smb_server/smb2/tcon.c @@ -53,10 +53,18 @@ struct ntvfs_handle *smb2srv_pull_handle(struct smb2srv_request *req, const uint return NULL; } + /* if it's the wildcard handle, don't waste time to search it... */ + if (hid == UINT64_MAX && tid == UINT32_MAX) { + return NULL; + } + /* TODO: add comments */ tcon = req->tcon; if (tid != req->tcon->tid) { tcon = smbsrv_smb2_tcon_find(req->session, tid, req->request_time); + if (!tcon) { + return NULL; + } } handle = smbsrv_smb2_handle_find(tcon, hid, req->request_time); |