]> git.ipfire.org Git - thirdparty/krb5.git/commit
Improve cleanup in krb5_rc_io_fetch() 573/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 2 Dec 2016 16:10:52 +0000 (11:10 -0500)
committerGreg Hudson <ghudson@mit.edu>
Tue, 6 Dec 2016 15:52:08 +0000 (10:52 -0500)
commit8b3e207bfe7fca287885ec47116d17784fa7e726
tree78495ed5d5003ce0526ca1f33ea63c1e47bf13ce
parent823e3088d835661fd718a941f602bb2972db96c8
Improve cleanup in krb5_rc_io_fetch()

In the error cleanup for krb5_rc_io_fetch(), null out rep->msghash
after freeing it, like we do with rep->client and rep->server.  This
omission is currently harmless because krb5_rc_io_fetch() never sets
rep->msghash before failing, but it could result in a double-free or
use after free if the code changes.
src/lib/krb5/rcache/rc_dfl.c