diff options
Diffstat (limited to 'auth/credentials')
-rw-r--r-- | auth/credentials/credentials.c | 2 |
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); } /** |