svn rev #21840: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Fri Jan 30 16:21:12 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21840
Commit By: ghudson
Log Message:
In krb5_kdcrep2creds, call the correct free function when cleaning up
the keyblock, and clean up the keyblock if krb5_copy_data fails.
Changed Files:
U trunk/src/lib/krb5/krb/gc_via_tkt.c
Modified: trunk/src/lib/krb5/krb/gc_via_tkt.c
===================================================================
--- trunk/src/lib/krb5/krb/gc_via_tkt.c 2009-01-30 21:12:30 UTC (rev 21839)
+++ trunk/src/lib/krb5/krb/gc_via_tkt.c 2009-01-30 21:21:10 UTC (rev 21840)
@@ -55,7 +55,7 @@
goto cleanup;
if ((retval = krb5_copy_data(context, psectkt, &pdata)))
- goto cleanup;
+ goto cleanup_keyblock;
(*ppcreds)->second_ticket = *pdata;
free(pdata);
@@ -85,7 +85,7 @@
return 0;
cleanup_keyblock:
- krb5_free_keyblock(context, &(*ppcreds)->keyblock);
+ krb5_free_keyblock_contents(context, &(*ppcreds)->keyblock);
cleanup:
free (*ppcreds);
More information about the cvs-krb5
mailing list