From 544c7285a22168e93f081eed5166bc8b5a313a79 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 5 Jul 2023 11:58:39 +0200 Subject: [PATCH] libsmb: A bit README.Coding for cli_qpathinfo2() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/libsmb/clirap.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c index 50be489d5a5..25edd217715 100644 --- a/source3/libsmb/clirap.c +++ b/source3/libsmb/clirap.c @@ -1059,13 +1059,11 @@ NTSTATUS cli_qpathinfo2(struct cli_state *cli, const char *fname, off_t *size, uint32_t *pattr, SMB_INO_T *ino) { - TALLOC_CTX *frame = NULL; - struct tevent_context *ev; - struct tevent_req *req; + TALLOC_CTX *frame = talloc_stackframe(); + struct tevent_context *ev = NULL; + struct tevent_req *req = NULL; NTSTATUS status = NT_STATUS_NO_MEMORY; - frame = talloc_stackframe(); - if (smbXcli_conn_has_async_calls(cli->conn)) { /* * Can't use sync call while an async call is in flight