]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix use-after-free during krad remote_shutdown()
authorRobbie Harwood <rharwood@redhat.com>
Sat, 29 May 2021 17:25:59 +0000 (13:25 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 1 Jul 2021 15:40:35 +0000 (11:40 -0400)
commit8c88defb16b34937d5b72b4832c854ce2dbe32d1
treeb6a83ebb7de8e9f5df8f86238320de2f3345fd9b
parent1848447291c68e21311f441b0458ae53471d00d3
Fix use-after-free during krad remote_shutdown()

Since elements of the queue can be removed on out-of-memory errors,
the correct call is K5_TAILQ_FOREACH_SAFE, not K5_TAILQ_FOREACH.
Reported by Coverity.

ticket: 9015 (new)
tags: pullup
target_version: 1.19-next
target_version: 1.18-next
src/lib/krad/remote.c