From: Jeremy Allison Date: Wed, 26 Aug 2020 19:05:06 +0000 (-0700) Subject: s3: libsmb: Cleanup - rename ctx -> frame for a talloc_stackframe to match modern... X-Git-Tag: talloc-2.3.2~614 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b3f92a2fa7bdf528009576cc8c1bf0905d9008a;p=thirdparty%2Fsamba.git s3: libsmb: Cleanup - rename ctx -> frame for a talloc_stackframe to match modern coding standards. We will be passing in a real TALLOC_CTX soon. Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 02b3546ff3c..b41ef23164d 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -3709,7 +3709,7 @@ static NTSTATUS get_dc_list(const char *domain, bool done_auto_lookup = false; int auto_count = 0; NTSTATUS status; - TALLOC_CTX *ctx = talloc_stackframe(); + TALLOC_CTX *frame = talloc_stackframe(); int auto_name_type = 0x1C; *ip_list = NULL; @@ -3753,14 +3753,14 @@ static NTSTATUS get_dc_list(const char *domain, /* fetch the server we have affinity for. Add the 'password server' list to a search for our domain controllers */ - saf_servername = saf_fetch(ctx, domain); + saf_servername = saf_fetch(frame, domain); if (strequal(domain, lp_workgroup()) || strequal(domain, lp_realm())) { - pserver = talloc_asprintf(ctx, "%s, %s", + pserver = talloc_asprintf(frame, "%s, %s", saf_servername ? saf_servername : "", lp_password_server()); } else { - pserver = talloc_asprintf(ctx, "%s, *", + pserver = talloc_asprintf(frame, "%s, *", saf_servername ? saf_servername : ""); } @@ -3780,7 +3780,7 @@ static NTSTATUS get_dc_list(const char *domain, */ p = pserver; - while (next_token_talloc(ctx, &p, &name, LIST_SEP)) { + while (next_token_talloc(frame, &p, &name, LIST_SEP)) { if (!done_auto_lookup && strequal(name, "*")) { status = internal_resolve_name(domain, auto_name_type, sitename, @@ -3826,7 +3826,7 @@ static NTSTATUS get_dc_list(const char *domain, /* fill in the return list now with real IP's */ while ((local_count