]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix memory leak in gss_add_cred() creation case 844/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 13 Sep 2018 15:29:46 +0000 (11:29 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 17 Sep 2018 22:31:15 +0000 (18:31 -0400)
commit9e32161dc307a323fd36fd59e252583fe7b90526
tree5335e051fb30449f622468e5fbaacc3178bcee9e
parent8ea7e36661cfa6d8acb2b1af615870092a408cce
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.

ticket: 8729
tags: pullup
target_version: 1.16-next
target_version: 1.15-next
.gitignore
src/lib/gssapi/mechglue/g_acquire_cred.c
src/tests/gssapi/Makefile.in
src/tests/gssapi/t_add_cred.c [new file with mode: 0644]
src/tests/gssapi/t_gssapi.py