check return value of krb5_get_tgs_ktypes()

The return value of krb5_get_tgs_ktypes() is never checked. If it fails it could cause memory corruption or a core dump. Return value needs to be checked before dereferencing argument.