summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-07 16:21:48 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:07 +0200
commit3276853e59c2686873baad7c6f9d2665ed6fdd56 (patch)
tree989e6823000c6faa47972cb7a72159455becdbcb
parentc1aeada4dd1f165eb33354c5a4323ed1ebf453a9 (diff)
downloadsamba-3276853e59c2686873baad7c6f9d2665ed6fdd56.tar.gz
samba-3276853e59c2686873baad7c6f9d2665ed6fdd56.tar.bz2
samba-3276853e59c2686873baad7c6f9d2665ed6fdd56.zip
s3:libsmb: Plumb cli_smb2_set_ea_path() inside cli_set_ea_path().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/libsmb/clifile.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 5cd1ff2e67..2cfe7cd241 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -4320,7 +4320,17 @@ NTSTATUS cli_set_ea_path(struct cli_state *cli, const char *path,
unsigned int param_len = 0;
uint8_t *param;
NTSTATUS status;
- TALLOC_CTX *frame = talloc_stackframe();
+ TALLOC_CTX *frame = NULL;
+
+ if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+ return cli_smb2_set_ea_path(cli,
+ path,
+ ea_name,
+ ea_val,
+ ea_len);
+ }
+
+ frame = talloc_stackframe();
param = talloc_array(frame, uint8_t, 6);
if (!param) {