]> git.ipfire.org Git - thirdparty/krb5.git/commit
Continue after KRB5_CC_END in KCM cache iteration 755/head
authorFabiano FidĂȘncio <fidencio@redhat.com>
Wed, 28 Mar 2018 16:27:06 +0000 (18:27 +0200)
committerGreg Hudson <ghudson@mit.edu>
Wed, 28 Mar 2018 20:07:32 +0000 (16:07 -0400)
commit49087f5e6309f298f8898c35af6f4ade418ced60
tree3a20f71a61bb551921d708e394ea2ac7448e34f1
parent91dad4eba37b5b56dc21d59880cb6eb4d3e6b7a5
Continue after KRB5_CC_END in KCM cache iteration

The KCM server returns KRB5_CC_END in response to a GET_CACHE_BY_UUID
request to indicate that the specified ccache uuid no longer exists.
In krb5_ptcursor_next(), ignore this error and continue the iteration,
as the Heimdal KCM client code does.

In addition to addressing the case where a third party deletes a cache
between the GET_CACHE_UUID_LIST request and when we reach that uuid in
the iteration, this change also fixes a bug in kdestroy -A where the
caller deletes the primary cache and we later request it by uuid when
iterating over the list.

[ghudson@mit.edu: rewrote commit message; edited comment]

ticket: 8658 (new)
tags: pullup
target_version: 1.16-next
target_version: 1.15-next
src/lib/krb5/ccache/cc_kcm.c