The changes cherry picked in
0149ee13d51b48d77fbbaa5c1109036332a5577c
rely on k5calloc(), which is not present in the 1.11 branch.
Compensate by using calloc() instead.
ticket: 8102
version_fixed: 1.11.6
status: resolved
return NULL;
/* Make a shallow copy of the key data so we can alter it. */
- key_data = k5calloc(n_key_data, sizeof(*key_data), &err);
- if (key_data_in == NULL)
+ key_data = calloc(n_key_data, sizeof(*key_data));
+ if (key_data_in == NULL) {
+ err = ENOMEM;
goto cleanup;
+ }
memcpy(key_data, key_data_in, n_key_data * sizeof(*key_data));
/* Unpatched krb5 1.11 and 1.12 cannot decode KrbKey sequences with no salt