summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-28 23:26:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:40 -0500
commitba4a5632225e588c082914270b46283139562bdc (patch)
tree2fa08b64bfc7d53355c4f236bd777136a52012d1 /source4
parent03a914931ead61340ca841541aa4b4fd72c2d535 (diff)
downloadsamba-ba4a5632225e588c082914270b46283139562bdc.tar.gz
samba-ba4a5632225e588c082914270b46283139562bdc.tar.bz2
samba-ba4a5632225e588c082914270b46283139562bdc.zip
r4382: check for bad tid in SMBtdis
(This used to be commit 44ca3f41cc835e22e6adca48ddfd84f246b22bfb)
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/reply.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c
index be5120c991..980f48bf57 100644
--- a/source4/smb_server/reply.c
+++ b/source4/smb_server/reply.c
@@ -1355,6 +1355,11 @@ void reply_tdis(struct smbsrv_request *req)
{
REQ_CHECK_WCT(req, 0);
+ if (req->tcon == NULL) {
+ req_reply_error(req, NT_STATUS_INVALID_HANDLE);
+ return;
+ }
+
close_cnum(req->tcon);
/* construct reply */