summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-07-31 12:33:25 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-08-05 17:47:57 +1200
commit953502925863377b5e566edff4ac68c63e8d151f (patch)
tree9163bb4063774f865cb18208b82b967721e5033c /auth
parentcae48e9a36d7e37ec18791439b30a876bde0c775 (diff)
downloadsamba-953502925863377b5e566edff4ac68c63e8d151f.tar.gz
samba-953502925863377b5e566edff4ac68c63e8d151f.tar.bz2
samba-953502925863377b5e566edff4ac68c63e8d151f.zip
auth/credentials: remove pointless talloc_reference() from cli_credentials_get_unparsed_name()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'auth')
-rw-r--r--auth/credentials/credentials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/credentials/credentials.c b/auth/credentials/credentials.c
index e6361239e9..e5978099ca 100644
--- a/auth/credentials/credentials.c
+++ b/auth/credentials/credentials.c
@@ -669,7 +669,7 @@ _PUBLIC_ const char *cli_credentials_get_unparsed_name(struct cli_credentials *c
const char *name;
if (bind_dn) {
- name = talloc_reference(mem_ctx, bind_dn);
+ name = talloc_strdup(mem_ctx, bind_dn);
} else {
cli_credentials_get_ntlm_username_domain(credentials, mem_ctx, &username, &domain);
if (domain && domain[0]) {