Fix month/year units in getdate
authorGreg Hudson <ghudson@mit.edu>
Sun, 6 Nov 2011 04:32:34 +0000 (04:32 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sun, 6 Nov 2011 04:32:34 +0000 (04:32 +0000)
commite10f243be294ba9b3ba4b39a1a6bdf4bbbaf0fcf
tree4f2f2d9a5a772e299aa3352c4c22e7e78254fcb4
parent83432c34d4123b600da962e84e021bb154598588
Fix month/year units in getdate

getdate strings like "1 month" or "next year" would fail some of the
time, depending on the value of stack garbage, because DSTcorrect()
doesn't set *error on success and RelativeMonth() doesn't initialize
error.  Make DSTcorrect() responsible for setting *error in all cases.

ticket: 7003
target_version: 1.10
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25444 dc483132-0cff-0310-8789-dd5450dbe970
src/kadmin/cli/getdate.y