[16195] in Kerberos-V5-bugs
[krbdev.mit.edu #8729] git commit
daemon@ATHENA.MIT.EDU (Greg Hudson via RT)
Tue Oct 30 12:28:41 2018
Mail-followup-to: rt@krbdev.mit.edu
mail-copies-to: never
From: "Greg Hudson via RT" <rt-comment@KRBDEV-PROD-APP-1.mit.edu>
In-Reply-To: <rt-8729@krbdev.mit.edu>
Message-ID: <rt-8729-49112.7.1235690087294@krbdev.mit.edu>
To: "'AdminCc of krbdev.mit.edu Ticket #8729'":;
Date: Tue, 30 Oct 2018 12:27:42 -0400 (EDT)
Reply-To: rt-comment@KRBDEV-PROD-APP-1.mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu
Fix memory leak in gss_add_cred() creation case
If gss_add_cred() is called with no input_cred_handle, it creates a
new credential with one element. At the end of the function, use the
created credential as the output container, rather than creating a
second one and leaking the first.
Add a test program for gss_add_cred() and run it.
(cherry picked from commit 9e32161dc307a323fd36fd59e252583fe7b90526)
https://github.com/krb5/krb5/commit/e058595730c57032b84bacbb00806a95fd5eb470
Author: Greg Hudson <ghudson@mit.edu>
Commit: e058595730c57032b84bacbb00806a95fd5eb470
Branch: krb5-1.15
.gitignore | 1 +
src/lib/gssapi/mechglue/g_acquire_cred.c | 3 +
src/tests/gssapi/Makefile.in | 40 ++++++------
src/tests/gssapi/t_add_cred.c | 98 ++++++++++++++++++++++++++++++
src/tests/gssapi/t_gssapi.py | 6 +-
5 files changed, 127 insertions(+), 21 deletions(-)
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs