summaryrefslogtreecommitdiff
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:48:00 +1200
commitb8f09226458dc13cf901f481ede89d8a6bb94ba7 (patch)
treea38ad674d66630a47900ec49f0172b962a84fab6
parent953502925863377b5e566edff4ac68c63e8d151f (diff)
downloadsamba-b8f09226458dc13cf901f481ede89d8a6bb94ba7.tar.gz
samba-b8f09226458dc13cf901f481ede89d8a6bb94ba7.tar.bz2
samba-b8f09226458dc13cf901f481ede89d8a6bb94ba7.zip
auth/credentials: remove pointless talloc_reference() from cli_credentials_get_principal_and_obtained()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-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 e5978099ca..7a4b081c61 100644
--- a/auth/credentials/credentials.c
+++ b/auth/credentials/credentials.c
@@ -267,7 +267,7 @@ _PUBLIC_ const char *cli_credentials_get_principal_and_obtained(struct cli_crede
}
}
*obtained = cred->principal_obtained;
- return talloc_reference(mem_ctx, cred->principal);
+ return talloc_strdup(mem_ctx, cred->principal);
}
/**