]> git.ipfire.org Git - thirdparty/krb5.git/commit
Check return values of time functions 834/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 29 Aug 2018 19:04:13 +0000 (15:04 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 31 Aug 2018 14:01:21 +0000 (10:01 -0400)
commit39f4af68d436f2e7585eca86823029b337c349a9
tree6d3611cc170aa5668018c1e59ef0b9cc05aa6f39
parent80a68906edbb6d0d179ee724822157e3145f74cd
Check return values of time functions

Where ctime(), localtime(), or localtime_r() is used, check for
failure even if it is unlikely (reported by Bean Zhang).  Constify the
strdate() return type in kdb5_mkey.c and kadmin.c and the
ctime_uint32() return type in kproplog.c.  Use localtime_r()
unconditionally in str_conv.c as there is already a wrapper in that
file for the case where the platform doesn't have it.  Remove an
inoperative localtime() call in ktutil.c.
src/kadmin/cli/kadmin.c
src/kadmin/dbutil/kdb5_mkey.c
src/kadmin/ktutil/ktutil.c
src/kadmin/server/misc.c
src/lib/kadm5/chpass_util.c
src/lib/kadm5/logger.c
src/lib/krb5/krb/str_conv.c
src/slave/kproplog.c