summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/namequery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 6ff5f7112a..fd12f75af5 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -1850,11 +1850,11 @@ static NTSTATUS get_dc_list(const char *domain,
saf_servername = saf_fetch( domain);
if (strequal(domain, lp_workgroup()) || strequal(domain, lp_realm())) {
- pserver = talloc_asprintf(NULL, "%s, %s",
+ pserver = talloc_asprintf(ctx, "%s, %s",
saf_servername ? saf_servername : "",
lp_passwordserver());
} else {
- pserver = talloc_asprintf(NULL, "%s, *",
+ pserver = talloc_asprintf(ctx, "%s, *",
saf_servername ? saf_servername : "");
}