]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:client: Pass down a talloc context to process()
authorAndreas Schneider <asn@samba.org>
Mon, 27 Oct 2025 14:08:53 +0000 (15:08 +0100)
committerAnoop C S <anoopcs@samba.org>
Thu, 6 Nov 2025 08:56:31 +0000 (08:56 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/client/client.c

index 9504a134f079e0bfe27b0c80039aac48d72834d6..ada39f4f655ee9741bdba155f5c35d4a0accfa52 100644 (file)
@@ -6232,7 +6232,7 @@ static int process_stdin(void)
  Process commands from the client.
 ****************************************************************************/
 
-static int process(const char *base_directory)
+static int process(TALLOC_CTX *mem_ctx, const char *base_directory)
 {
        int rc = 0;
        NTSTATUS status;
@@ -6804,7 +6804,7 @@ int main(int argc,char *argv[])
                rc = do_host_query(lp_ctx, qhost);
        } else if (message) {
                rc = do_message_op(creds);
-       } else if (process(base_directory)) {
+       } else if (process(frame, base_directory)) {
                rc = 1;
        }