git.samba.org
/
metze
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec121eb
)
librpc:crypto: SAFE_FREE() -> krb5_free_string()
author
Pavel Filipenský
<pfilipensky@samba.org>
Thu, 27 Jul 2023 14:29:19 +0000
(16:29 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 28 Jul 2023 10:48:32 +0000
(10:48 +0000)
Reported by Red Hat internal covscan
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/librpc/crypto/gse.c
patch
|
blob
|
history
diff --git
a/source3/librpc/crypto/gse.c
b/source3/librpc/crypto/gse.c
index cdb7f7d75c7e5ae20eaf625c8dccb11df7b18e8d..9508a2d819a4bdc80dbabff3680add2afdb6c1bd 100644
(file)
--- a/
source3/librpc/crypto/gse.c
+++ b/
source3/librpc/crypto/gse.c
@@
-331,7
+331,7
@@
static NTSTATUS gse_init_client(struct gensec_security *gensec_security,
DEBUG(5, ("smb_gss_krb5_import_cred ccache[%s] failed with [%s] -"
"the caller may retry after a kinit.\n",
ccache, gse_errstr(gse_ctx, gss_maj, gss_min)));
-
SAFE_FREE(
ccache);
+
krb5_free_string(gse_ctx->k5ctx,
ccache);
status = NT_STATUS_INTERNAL_ERROR;
goto err_out;
}