]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix double-close in ksu get_authorized_princ_names 879/head
authorRobbie Harwood <rharwood@redhat.com>
Tue, 18 Dec 2018 20:18:13 +0000 (15:18 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 19 Dec 2018 17:42:36 +0000 (12:42 -0500)
commit0b8c6f3e1e8e561aa56a7d4e2171320119991dae
treee08f73a02e21fba9f66fa7f528e2016d63e7e50a
parent0e4932982665c69cc4417eb7dbf0eda87fe5bd3e
Fix double-close in ksu get_authorized_princ_names

If list_union() fails due to an allocation failure, then close_time()
will attempt to fclose users_fp and login_fp a second time.

This bug was originally introduced in commit
be95b52c2d0c21b1fe92f9f90166fc2fa8eecc95, and has been present in
every krb5 release since 1.1.

ticket: 8768 (new)
tags: pullup
target_version: 1.17
target_version: 1.16-next
target_version: 1.15-next
src/clients/ksu/heuristic.c