summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-08 10:52:02 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:07 +0200
commitcba3ed0466b8598e28a44809778b99e97b1bf1a1 (patch)
tree8dab4fed1fa8adf8a8bde44009a0bc1ebd70596d
parent2bb3e251d59910d9bf527a73271094702bceefe2 (diff)
downloadsamba-cba3ed0466b8598e28a44809778b99e97b1bf1a1.tar.gz
samba-cba3ed0466b8598e28a44809778b99e97b1bf1a1.tar.bz2
samba-cba3ed0466b8598e28a44809778b99e97b1bf1a1.zip
s3:libsmb: Plumb cli_smb2_qpathinfo_basic() inside cli_qpathinfo_basic().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/libsmb/clirap.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 06dea826ff..7a480d6337 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -1275,11 +1275,20 @@ NTSTATUS cli_qpathinfo_basic_recv(struct tevent_req *req,
NTSTATUS cli_qpathinfo_basic(struct cli_state *cli, const char *name,
SMB_STRUCT_STAT *sbuf, uint32 *attributes)
{
- 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_basic(cli,
+ name,
+ sbuf,
+ attributes);
+ }
+
+ frame = talloc_stackframe();
+
if (smbXcli_conn_has_async_calls(cli->conn)) {
/*
* Can't use sync call while an async call is in flight