rjancewicz / python-kadmin

Python module for kerberos admin (kadm5)
MIT License
35 stars 40 forks source link

Fix #45: max (renewable) ticket life is negative #46

Closed ehashman closed 8 years ago

ehashman commented 8 years ago

Since the negative flag in the helper function pykadmin_timestamp_as_deltastr was never initialized to zero, using it in a comparison reads random values off the stack, which are more likely to be non-zero than zero. Hence, checking whether the delta was negative would return true even in cases where the delta was not negative.