ticket: 6436
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22170
dc483132-0cff-0310-8789-
dd5450dbe970
else cookie_padata = find_pa_data(request->padata, KRB5_PADATA_FX_COOKIE);
if (retval == 0 && cookie_padata != NULL) {
krb5_pa_data *new_padata = malloc(sizeof (krb5_pa_data));
- if (new_padata != NULL) {
+ if (new_padata == NULL) {
retval = ENOMEM;
} else {
new_padata->pa_type = KRB5_PADATA_FX_COOKIE;
if (ret)
goto cleanup;
if ((ret = decrypt_as_reply(context, NULL, local_as_reply, NULL,
- NULL, &as_key, krb5_kdc_rep_decrypt_proc,
+ NULL, &encrypting_key, krb5_kdc_rep_decrypt_proc,
NULL)))
goto cleanup;
}