mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
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 27087818c7
)
This commit is contained in:
parent
70b5c605c0
commit
627f49d8c9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user