summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-07 16:42:02 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:07 +0200
commit7e2d969deb1d4bcf3add422d80852b2d386cfaac (patch)
treee8458597244daa0ea09dbbb0ceb7fd5a1980d2c2 /source3
parentf8dfc50124e5b5083aa801d9658389dd3fa6698a (diff)
downloadsamba-7e2d969deb1d4bcf3add422d80852b2d386cfaac.tar.gz
samba-7e2d969deb1d4bcf3add422d80852b2d386cfaac.tar.bz2
samba-7e2d969deb1d4bcf3add422d80852b2d386cfaac.zip
s3:libsmb: Plumb cli_smb2_get_ea_list_path() inside cli_get_ea_list_path().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-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 d186112d42..424354b963 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -4554,11 +4554,21 @@ NTSTATUS cli_get_ea_list_path(struct cli_state *cli, const char *path,
size_t *pnum_eas,
struct ea_struct **pea_list)
{
- TALLOC_CTX *frame = talloc_stackframe();
+ TALLOC_CTX *frame = NULL;
struct tevent_context *ev = NULL;
struct tevent_req *req = NULL;
NTSTATUS status = NT_STATUS_NO_MEMORY;
+ if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+ return cli_smb2_get_ea_list_path(cli,
+ path,
+ ctx,
+ pnum_eas,
+ pea_list);
+ }
+
+ frame = talloc_stackframe();
+
if (smbXcli_conn_has_async_calls(cli->conn)) {
/*
* Can't use sync call while an async call is in flight