]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix deleted node handling in libprofile
authorGreg Hudson <ghudson@mit.edu>
Wed, 16 Jul 2014 20:02:21 +0000 (16:02 -0400)
committerTom Yu <tlyu@mit.edu>
Fri, 6 Feb 2015 23:33:10 +0000 (18:33 -0500)
commitd94ec3f610f1ff3198e306523bc5dbd227c4f219
tree1b9f5400f15be85ef8c84d019a1cfb5d4b889ed6
parent4e4895c6e2d3ebed8f4ccd1aafe2c8c0cd52d884
Fix deleted node handling in libprofile

In profile_find_node, skip deleted nodes when finding the second
match.  Otherwise, profile_clear_nodes could return an error if a node
has some values to clear but the last one is deleted.

In profile_node_iterator, skip deleted nodes when looking up the
section names.  Otherwise we could iterate over a deleted section
and/or ignore its replacement.

(cherry picked from commit e7f50a1c11845ba73ce4ffa4729d10113563a247)

ticket: 8117 (new)
version_fixed: 1.11.6
status: resolved
src/util/profile/prof_tree.c