Skip to content

Commit

Permalink
ticket: 6657
Browse files Browse the repository at this point in the history
version_fixed: 1.8
status: resolved

pull up r23713 from trunk

 ------------------------------------------------------------------------
 r23713 | hartmans | 2010-02-09 14:15:12 -0500 (Tue, 09 Feb 2010) | 10 lines

 subject: krb5int_fast_free_state segfaults if state is null
 ticket: 6657
 target_version: 1.8
 tags: pullup

 krb5int_fast_free_state fails if state is null.  INstead it should
 simply return Reorganization of the get_init_creds logic has created
 situations where the init_creds loop can fail between the time when
 the context is initialized and the fast state is initialized.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-8@23719 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
tlyu committed Feb 12, 2010
1 parent 7e2bd1e commit 1ed9940
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/krb5/krb/fast.c
Expand Up @@ -533,6 +533,8 @@ krb5int_fast_make_state( krb5_context context, struct krb5int_fast_request_state
void
krb5int_fast_free_state( krb5_context context, struct krb5int_fast_request_state *state)
{
if (state == NULL)
return;
/*We are responsible for none of the store in the fast_outer_req*/
krb5_free_keyblock(context, state->armor_key);
krb5_free_fast_armor(context, state->armor);
Expand Down

0 comments on commit 1ed9940

Please sign in to comment.