auth/credentials: remove pointless talloc_reference() from cli_credentials_get_princi...
authorStefan Metzmacher <metze@samba.org>
Wed, 31 Jul 2013 10:33:25 +0000 (12:33 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 5 Aug 2013 05:48:00 +0000 (17:48 +1200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/credentials/credentials.c

index e5978099ca4838ab5ccc7d965f1517b3cb8c470f..7a4b081c611061db29deae908766d55dd02efc95 100644 (file)
@@ -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);
 }
 
 /**