diff options
author | Volker Lendecke <vl@samba.org> | 2008-11-09 12:07:57 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-11-28 10:06:24 +0100 |
commit | a790dcbc4ec2f3b29045ab9919cca5a9ca038e26 (patch) | |
tree | 064ce43e7c399afc440e2832347fd3719067bcdf /source3/smbd | |
parent | 2719216d60088eb3f10a2e3e968f15e8089b5491 (diff) | |
download | samba-a790dcbc4ec2f3b29045ab9919cca5a9ca038e26.tar.gz samba-a790dcbc4ec2f3b29045ab9919cca5a9ca038e26.tar.bz2 samba-a790dcbc4ec2f3b29045ab9919cca5a9ca038e26.zip |
Remove inbuf references from the trans2ioctl code
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index cc8c61175b..4dc2001042 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -7269,8 +7269,8 @@ static void call_trans2ioctl(connection_struct *conn, return; } - if ((SVAL(req->inbuf,(smb_setup+4)) == LMCAT_SPL) - && (SVAL(req->inbuf,(smb_setup+6)) == LMFUNC_GETJOBID)) { + if ((SVAL(req->vwv+16, 0) == LMCAT_SPL) + && (SVAL(req->vwv+17, 0) == LMFUNC_GETJOBID)) { *ppdata = (char *)SMB_REALLOC(*ppdata, 32); if (*ppdata == NULL) { reply_nterror(req, NT_STATUS_NO_MEMORY); @@ -7613,8 +7613,8 @@ void reply_trans2(struct smb_request *req) */ if ( (state->setup_count == 4) && (tran_call == TRANSACT2_IOCTL) - && (SVAL(req->inbuf,(smb_setup+4)) == LMCAT_SPL) - && (SVAL(req->inbuf,(smb_setup+6)) == LMFUNC_GETJOBID)) { + && (SVAL(req->vwv+16, 0) == LMCAT_SPL) + && (SVAL(req->vwv+17, 0) == LMFUNC_GETJOBID)) { DEBUG(2,("Got Trans2 DevIOctl jobid\n")); } else { DEBUG(2,("Invalid smb_sucnt in trans2 call(%u)\n",state->setup_count)); |