]> git.ipfire.org Git - thirdparty/krb5.git/commit
Check for null *iter_p in profile_iterator()
authorGreg Hudson <ghudson@mit.edu>
Wed, 14 Jan 2015 18:10:39 +0000 (13:10 -0500)
committerTom Yu <tlyu@mit.edu>
Tue, 10 Feb 2015 02:26:40 +0000 (21:26 -0500)
commit085554b42450f777ac17e79d71ec054ab2f35226
tree915ec823f379f364e1b91a586578e9638a903347
parentd690f874da8c910107bed098acf291209f881044
Check for null *iter_p in profile_iterator()

In profile_iterator(), return PROF_MAGIC_ITERATOR if *iter_p is NULL,
instead of dereferencing a null pointer, as we did prior to 1.10.
Correct calling code will not trigger this case, but incorrect code
has been reported in the field.

(cherry picked from commit 9a343200d305e7c8df6e556d63afaee42194175f)

ticket: 8127 (new)
version_fixed: 1.12.3
status: resolved
src/util/profile/prof_get.c