1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

Fix signing bug with secondary client trans requests. Turns out the last

packet is the one that matters for checking the signing replies. Need to
check the server code does this correctly too....
Bug #832 reported by Volker.
Jeremy.
This commit is contained in:
Jeremy Allison -
parent 39e4ee0c5b
commit 6750dc33b4

View File

@ -134,6 +134,16 @@ BOOL cli_send_trans(struct cli_state *cli, int trans,
* the primary. Important in signing. JRA. */
cli->mid = mid;
/*
* Turns out that we need to increment the
* sequence number for each packet until the
* last one in the signing sequence. That's
* the one that matters to check signing replies. JRA.
*/
cli_signing_trans_stop(cli);
cli_signing_trans_start(cli);
show_msg(cli->outbuf);
if (!cli_send_smb(cli)) {
cli_signing_trans_stop(cli);
@ -427,6 +437,16 @@ BOOL cli_send_nt_trans(struct cli_state *cli,
* the primary. Important in signing. JRA. */
cli->mid = mid;
/*
* Turns out that we need to increment the
* sequence number for each packet until the
* last one in the signing sequence. That's
* the one that matters to check signing replies. JRA.
*/
cli_signing_trans_stop(cli);
cli_signing_trans_start(cli);
show_msg(cli->outbuf);
if (!cli_send_smb(cli)) {