]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix minor leak in krb5_gss_inquire_cred() 796/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 15 Jun 2018 15:40:13 +0000 (11:40 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 19 Jun 2018 14:53:02 +0000 (10:53 -0400)
commit46972c0664b7cfd70c40370c22e604efc0225e14
tree5cd5ada581d97ff252362d426b395b965f1748c6
parentdbc2ccd6d9ff546e2f4af54898c952ffa4eebf44
Fix minor leak in krb5_gss_inquire_cred()

If mechs is created but one of the generic_gss_add_oid_set_member()
calls fails, it leaks.  Initialize mechs and free it in the fail
label.  Also null mechs when we transfer ownership of it to the
caller, in case we later unify the success and failure exit paths.
Reported by Bean Zhang.

ticket: 8697
src/lib/gssapi/krb5/inq_cred.c