svn rev #23713: trunk/src/lib/krb5/krb/
hartmans@MIT.EDU
hartmans at MIT.EDU
Tue Feb 9 14:15:13 EST 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23713
Commit By: hartmans
Log Message:
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.
Changed Files:
U trunk/src/lib/krb5/krb/fast.c
Modified: trunk/src/lib/krb5/krb/fast.c
===================================================================
--- trunk/src/lib/krb5/krb/fast.c 2010-02-09 19:15:07 UTC (rev 23712)
+++ trunk/src/lib/krb5/krb/fast.c 2010-02-09 19:15:12 UTC (rev 23713)
@@ -533,6 +533,8 @@
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);
More information about the cvs-krb5
mailing list