]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix minor race in kadmin time interval parsing
authorGreg Hudson <ghudson@mit.edu>
Fri, 22 Apr 2016 19:23:04 +0000 (15:23 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 25 Apr 2016 21:53:19 +0000 (17:53 -0400)
commitcf6e4cae6e43f06cb1d173576d155952440db2fc
treef651eae5065e39d48f06d65800c635c5a30c4079
parent0e668054974b07ec7ffbe2d9d474062d590c7e69
Fix minor race in kadmin time interval parsing

When parsing kadmin time intervals using getdate.y relative time
formats, make sure the same timestamp is added to and substracted from
the relative value.  To accomplish this, rename get_date() to
get_date_rel() with a second parameter for the current time, and make
get_date() a wrapper with the current signature for the benefit of
kdb5_util and kdb5_ldap_util.

ticket: 8393
src/kadmin/cli/getdate.y
src/kadmin/cli/kadmin.c
src/kadmin/cli/kadmin.h