diff options
-rw-r--r-- | source3/libsmb/cliconnect.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 9850511b85..cd914bf852 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2332,6 +2332,7 @@ struct tevent_req *cli_tcon_andx_create(TALLOC_CTX *mem_ctx, } tcon_flags |= TCONX_FLAG_EXTENDED_RESPONSE; + tcon_flags |= TCONX_FLAG_EXTENDED_SIGNATURES; SCVAL(vwv+0, 0, 0xFF); SCVAL(vwv+0, 1, 0); @@ -2482,6 +2483,10 @@ static void cli_tcon_andx_done(struct tevent_req *subreq) cli->dfsroot = true; } + if (optional_support & SMB_EXTENDED_SIGNATURES) { + smb1cli_session_protect_session_key(cli->smb1.session); + } + cli_state_set_tid(cli, SVAL(inhdr, HDR_TID)); tevent_req_done(req); } |