summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-08-02 00:29:45 +0000
committerJeremy Allison <jra@samba.org>2003-08-02 00:29:45 +0000
commit2443f7ffa20a683eabb792182cb0206402ad8059 (patch)
tree48d0fbd22e7646a4005d799b8210187668aa4a6e /source3/libsmb/clientgen.c
parent72a8b313036092d3133c010257218ab60c1ca808 (diff)
downloadsamba-2443f7ffa20a683eabb792182cb0206402ad8059.tar.gz
samba-2443f7ffa20a683eabb792182cb0206402ad8059.tar.bz2
samba-2443f7ffa20a683eabb792182cb0206402ad8059.zip
Correct fix (removed the earlier band-aid) for what I thought was a signing
bug with w2k. Turns out that when we're doing a trans/trans2/nttrans call the MID and send_sequence_number and reply_sequence_number must remain constant. This was something we got very wrong in earlier versions of Samba. I can now get a directory listing from WINNT\SYSTEM32 with the older earlier parameters for clilist.c This still needs to be fixed for the server side of Samba, client appears to be working happily now (I'm doing a signed smbtar download of an entire W2K3 image to test this :-). Jeremy. (This used to be commit 2093a3130d4087d0659b497eebd580e7a66e5aa3)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index cdda2eb224..bc5f1462cc 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -157,6 +157,10 @@ BOOL cli_send_smb(struct cli_state *cli)
}
nwritten += ret;
}
+ /* Increment the mid so we can tell between responses. */
+ cli->mid++;
+ if (!cli->mid)
+ cli->mid++;
return True;
}