diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-01 11:45:36 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-01 14:17:16 +0200 |
commit | 137d65b39790fec10f908e25633b80d22e54e0b6 (patch) | |
tree | dd9c0afdb226f9627d5c14e11e1c2b0b2c8df32d /source3/libsmb | |
parent | d3aaa1ebc822d3384f1821302585921d44028649 (diff) | |
download | samba-137d65b39790fec10f908e25633b80d22e54e0b6.tar.gz samba-137d65b39790fec10f908e25633b80d22e54e0b6.tar.bz2 samba-137d65b39790fec10f908e25633b80d22e54e0b6.zip |
s3:libsmb: add a tcon_flags helper variable
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliconnect.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 85f7fd9be7..2b32529436 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2255,6 +2255,7 @@ struct tevent_req *cli_tcon_andx_create(TALLOC_CTX *mem_ctx, char *tmp = NULL; uint8_t *bytes; uint16_t sec_mode = smb1cli_conn_server_security_mode(cli->conn); + uint16_t tcon_flags = 0; *psmbreq = NULL; @@ -2330,10 +2331,12 @@ struct tevent_req *cli_tcon_andx_create(TALLOC_CTX *mem_ctx, } } + tcon_flags |= TCONX_FLAG_EXTENDED_RESPONSE; + SCVAL(vwv+0, 0, 0xFF); SCVAL(vwv+0, 1, 0); SSVAL(vwv+1, 0, 0); - SSVAL(vwv+2, 0, TCONX_FLAG_EXTENDED_RESPONSE); + SSVAL(vwv+2, 0, tcon_flags); SSVAL(vwv+3, 0, passlen); if (passlen && pass) { |