]> git.ipfire.org Git - thirdparty/krb5.git/commit
Check for null *iter_p in profile_iterator() 242/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 14 Jan 2015 18:10:39 +0000 (13:10 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 15 Jan 2015 16:47:43 +0000 (11:47 -0500)
commit9a343200d305e7c8df6e556d63afaee42194175f
treef97a10a10288845fca766e729b091ca235c7fd31
parent57dc24093015d292189ef23313ef8ff2a81431e4
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.

ticket: 8059 (new)
target_version: 1.13.1
tags: pullup
src/util/profile/prof_get.c