1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

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>
This commit is contained in:
Stefan Metzmacher 2013-07-31 12:33:25 +02:00 committed by Andrew Bartlett
parent 9535029258
commit b8f0922645

View 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);
}
/**