summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-12-17 13:06:13 +0100
committerStefan Metzmacher <metze@samba.org>2010-12-22 09:54:30 +0100
commit2c657d87057b13533c7cd9b1dd695aa889e4a991 (patch)
tree3faed4d68aa9c8692ff96d60c524d00c0cec0f0b /source3
parent987b49c8e201310a563a21d05412d92dbf7b1beb (diff)
downloadsamba-2c657d87057b13533c7cd9b1dd695aa889e4a991.tar.gz
samba-2c657d87057b13533c7cd9b1dd695aa889e4a991.tar.bz2
samba-2c657d87057b13533c7cd9b1dd695aa889e4a991.zip
s3:libsmb/namequery.c: don't leak 'pserver'
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 22 09:54:31 CET 2010 on sn-devel-104
Diffstat (limited to 'source3')
-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 : "");
}