]> git.ipfire.org Git - thirdparty/krb5.git/commit
Make rcache file2 code slightly more robust 940/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 1 Jun 2019 19:08:24 +0000 (15:08 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 10 Jun 2019 14:37:07 +0000 (10:37 -0400)
commitce8d619429255e0c1483d7fce3dffdc93baaac20
tree1214741b638772d56c193afd4c005a5b86e5b1e1
parentb61c0552040c6ac7f292d7ba25327b5742c63e4b
Make rcache file2 code slightly more robust

In rc_file2.c:store(), when making note of available records,
explicitly check for an empty record (r1stamp or t2stamp is 0), to
more closely match the check for terminating the search.  This
silences a Coverity false positive, as Coverity does not assume that
now > skew as it would be in practice.

To preserve code readability, shorten some variable names, add an
expired() inline helper function, and add comments.
src/lib/krb5/rcache/rc_file2.c