summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-07 16:46:05 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:07 +0200
commite96309ca1b057d430444531523bb2c9f59fcd624 (patch)
treefa6f5dd6868bae1c9236e15158e20c76b3e350ff
parentf2f566b1cc8d55bd1cf93478b877a3e7f455855c (diff)
downloadsamba-e96309ca1b057d430444531523bb2c9f59fcd624.tar.gz
samba-e96309ca1b057d430444531523bb2c9f59fcd624.tar.bz2
samba-e96309ca1b057d430444531523bb2c9f59fcd624.zip
s3:libsmb: Plumb cli_smb2_qpathinfo_streams() inside cli_qpathinfo_streams().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/libsmb/clirap.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 41608dd732..bb4f3340a0 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -965,11 +965,21 @@ NTSTATUS cli_qpathinfo_streams(struct cli_state *cli, const char *fname,
unsigned int *pnum_streams,
struct stream_struct **pstreams)
{
- TALLOC_CTX *frame = talloc_stackframe();
+ TALLOC_CTX *frame = NULL;
struct tevent_context *ev;
struct tevent_req *req;
NTSTATUS status = NT_STATUS_NO_MEMORY;
+ if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+ return cli_smb2_qpathinfo_streams(cli,
+ fname,
+ mem_ctx,
+ pnum_streams,
+ pstreams);
+ }
+
+ frame = talloc_stackframe();
+
if (smbXcli_conn_has_async_calls(cli->conn)) {
/*
* Can't use sync call while an async call is in flight