diff options
author | Jeremy Allison <jra@samba.org> | 2007-03-21 00:44:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:47 -0500 |
commit | a828b56884a1385823cdb1d186860a1e1466fca7 (patch) | |
tree | 7c8e8bada654eb6aeddfad74a741c6a58e55a992 /source3/libsmb | |
parent | 071db6fdbff694681fa1793ee678a9a0af3e266a (diff) | |
download | samba-a828b56884a1385823cdb1d186860a1e1466fca7.tar.gz samba-a828b56884a1385823cdb1d186860a1e1466fca7.tar.bz2 samba-a828b56884a1385823cdb1d186860a1e1466fca7.zip |
r21898: Added test command, fixed first valgrind bugs.
Now to investigate why it doesn't work :-).
Jeremy.
(This used to be commit 73f7c6cef8371ad63eb1dc3e79bfc78503dbd7a4)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifsinfo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libsmb/clifsinfo.c b/source3/libsmb/clifsinfo.c index 52e12a38e3..0bd1e124ea 100644 --- a/source3/libsmb/clifsinfo.c +++ b/source3/libsmb/clifsinfo.c @@ -310,20 +310,21 @@ cleanup: static NTSTATUS enc_blob_send_receive(struct cli_state *cli, DATA_BLOB *in, DATA_BLOB *out) { uint16 setup; - char param[2]; + char param[4]; char *rparam=NULL, *rdata=NULL; unsigned int rparam_count=0, rdata_count=0; NTSTATUS status = NT_STATUS_OK; setup = TRANSACT2_SETFSINFO; - SSVAL(param,0,SMB_REQUEST_TRANSPORT_ENCRYPTION); + SSVAL(param,0,0); + SSVAL(param,2,SMB_REQUEST_TRANSPORT_ENCRYPTION); if (!cli_send_trans(cli, SMBtrans2, NULL, 0, 0, &setup, 1, 0, - param, 2, 0, + param, 4, 0, (char *)in->data, in->length, CLI_BUFFER_SIZE)) { status = cli_nt_error(cli); goto out; |