check return value from krb5_crypto_init
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8975 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -70,10 +70,15 @@ krb5_rd_cred (krb5_context context,
|
||||
enc_krb_cred_part_data.data = cred.enc_part.cipher.data;
|
||||
} else {
|
||||
if (auth_context->remote_subkey)
|
||||
krb5_crypto_init(context, auth_context->remote_subkey, 0, &crypto);
|
||||
ret = krb5_crypto_init(context, auth_context->remote_subkey,
|
||||
0, &crypto);
|
||||
else
|
||||
krb5_crypto_init(context, auth_context->keyblock, 0, &crypto);
|
||||
ret = krb5_crypto_init(context, auth_context->keyblock,
|
||||
0, &crypto);
|
||||
/* DK: MIT rsh */
|
||||
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
ret = krb5_decrypt_EncryptedData(context,
|
||||
crypto,
|
||||
|
Reference in New Issue
Block a user