diff --git a/appl/login/login.c b/appl/login/login.c index e3e13fb13..6110d36a2 100644 --- a/appl/login/login.c +++ b/appl/login/login.c @@ -269,8 +269,6 @@ krb5_finish (void) krb5_free_context(context); } -#ifdef KRB4 - static void krb5_get_afs_tokens (const struct passwd *pwd) { @@ -300,8 +298,6 @@ krb5_get_afs_tokens (const struct passwd *pwd) } } -#endif /* KRB4 */ - #endif /* KRB5 */ #ifdef KRB4 @@ -598,9 +594,10 @@ do_login(const struct passwd *pwd, char *tty, char *ttyn) krb5_cc_close (context, id); } } +#endif /* KRB4 */ krb5_get_afs_tokens (pwd); -#endif /* KRB4 */ + krb5_finish (); #endif /* KRB5 */