mirror of
https://github.com/samba-team/samba.git
synced 2025-08-31 22:02:58 +03:00
auth:credentials: SAFE_FREE() -> krb5_free_enctypes()
Reported by Red Hat internal covscan Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Stefan Metzmacher
parent
c5778a0fbd
commit
cd60e3fdef
@ -945,7 +945,8 @@ _PUBLIC_ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred,
|
|||||||
maj_stat = gss_krb5_set_allowable_enctypes(&min_stat, gcc->creds,
|
maj_stat = gss_krb5_set_allowable_enctypes(&min_stat, gcc->creds,
|
||||||
num_ktypes,
|
num_ktypes,
|
||||||
(int32_t *) etypes);
|
(int32_t *) etypes);
|
||||||
SAFE_FREE(etypes);
|
krb5_free_enctypes(ccache->smb_krb5_context->krb5_context,
|
||||||
|
etypes);
|
||||||
if (maj_stat) {
|
if (maj_stat) {
|
||||||
talloc_free(gcc);
|
talloc_free(gcc);
|
||||||
if (min_stat) {
|
if (min_stat) {
|
||||||
|
Reference in New Issue
Block a user