Skip to content

Commit

Permalink
* login.c (main): Reorder some control flow to avoid security hole
Browse files Browse the repository at this point in the history
	if KRB4_GET_TICKETS is not defined.
[pullup from trunk]


git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-1@12002 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
tlyu committed Feb 6, 2000
1 parent d530263 commit 77c4f0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/appl/bsd/ChangeLog
@@ -1,3 +1,8 @@
2000-02-04 Tom Yu <tlyu@mit.edu>

* login.c (main): Reorder some control flow to avoid security hole
if KRB4_GET_TICKETS is not defined.

1999-12-02 Ken Raeburn <raeburn@mit.edu>

* login.c (main, k_init): Call krb5_cc_set_default_name when
Expand Down
10 changes: 4 additions & 6 deletions src/appl/bsd/login.c
Expand Up @@ -1456,11 +1456,10 @@ int main(argc, argv)
#ifdef KRB5_GET_TICKETS
if (login_krb5_get_tickets)
dofork();
else
#endif
#ifdef KRB4_GET_TICKETS
if (login_krb4_get_tickets)
dofork();
else if (login_krb4_get_tickets)
dofork();
#endif

/* If the user's shell does not do job control we should put it in a
Expand Down Expand Up @@ -1588,11 +1587,10 @@ int main(argc, argv)
#ifdef KRB5_GET_TICKETS
if (forwarded_v5_tickets)
destroy_tickets();
else
#endif
#ifdef KRB4_GET_TICKETS
if (got_v4_tickets)
destroy_tickets();
else if (got_v4_tickets)
destroy_tickets();
#endif

#ifdef OQUOTA
Expand Down

0 comments on commit 77c4f0f

Please sign in to comment.