svn rev #22189: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Fri Apr 10 15:50:55 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22189
Commit By: ghudson
Log Message:
Check return value of krb5int_copy_data_contents in preauth2.c's
pa_salt.
Changed Files:
U trunk/src/lib/krb5/krb/preauth2.c
Modified: trunk/src/lib/krb5/krb/preauth2.c
===================================================================
--- trunk/src/lib/krb5/krb/preauth2.c 2009-04-10 16:09:19 UTC (rev 22188)
+++ trunk/src/lib/krb5/krb/preauth2.c 2009-04-10 19:50:55 UTC (rev 22189)
@@ -634,10 +634,13 @@
krb5_gic_get_as_key_fct gak_fct, void *gak_data)
{
krb5_data tmp;
+ krb5_error_code retval;
tmp = padata2data(*in_padata);
krb5_free_data_contents(context, salt);
- krb5int_copy_data_contents(context, &tmp, salt);
+ retval = krb5int_copy_data_contents(context, &tmp, salt);
+ if (retval)
+ return retval;
if (in_padata->pa_type == KRB5_PADATA_AFS3_SALT)
salt->length = SALT_TYPE_AFS_LENGTH;
More information about the cvs-krb5
mailing list