diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-07-03 01:58:27 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-07-03 01:58:27 +0000 |
commit | 07fcf2df0349d5e1294c92de8d982b62d11175a4 (patch) | |
tree | 21a92b1657fd4efe80aeff71e254e9c095916f02 /source3/smbd/reply.c | |
parent | 7ca58ce114b4eafb2bb05d9e9699fe9effd8d9ec (diff) | |
download | samba-07fcf2df0349d5e1294c92de8d982b62d11175a4.tar.gz samba-07fcf2df0349d5e1294c92de8d982b62d11175a4.tar.bz2 samba-07fcf2df0349d5e1294c92de8d982b62d11175a4.zip |
- moved the protocol defs in the client to keep sill C compilers happy
- added change for cnum range in reply_tdis()
(This used to be commit 609c3a5e1e3a8d9ba380a802ab3ecf6f47093846)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 4cfa001ec2..13cc8efe5d 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2062,6 +2062,11 @@ int reply_tdis(char *inbuf,char *outbuf) cnum = SVAL(inbuf,smb_tid); uid = SVAL(inbuf,smb_uid); + if (!OPEN_CNUM(cnum)) { + DEBUG(4,("Invalid cnum in tdis (%d)\n",cnum)); + return(ERROR(ERRSRV,ERRinvnid)); + } + Connections[cnum].used = False; close_cnum(cnum,uid); |