]> git.ipfire.org Git - thirdparty/krb5.git/commit
Free GSS checksum data deterministically 658/head
authorTomas Kuthan <tkuthan@gmail.com>
Tue, 16 May 2017 09:24:40 +0000 (11:24 +0200)
committerGreg Hudson <ghudson@mit.edu>
Wed, 24 May 2017 18:27:12 +0000 (14:27 -0400)
commit29337e7c7b796685fb6a03466d32147e17aa2d16
tree180e9329633e71d24c84f3fe947ba00b7b4db381
parentb3df4f4e0dafa10595e6bc4e1d7daa7fc68aad83
Free GSS checksum data deterministically

In the normal course of execution, md5.contents allocated by
kg_checksum_channel_bindings() in make_ap_req_v1() is freed in
make_gss_checksum().  But when there is a failure in
krb5_mk_req_extended() or in make_gss_checksum() before free is
called, the memory leaks.

This patch frees the memory unconditionally in make_ap_req_v1().

ticket: 8584 (new)
target_version: 1.15-next
target_version: 1.14-next
tags: pullup
src/lib/gssapi/krb5/init_sec_context.c