krb5: fix allocation error in krb5_mk_ncred()

ppdata in krb5_mk_ncred() should be the size of a krb5_data, not a pointer
This commit is contained in:
Luke Howard
2021-12-20 12:41:59 +11:00
parent f555fdda7e
commit 2670599efa

View File

@@ -98,7 +98,7 @@ krb5_mk_ncred(krb5_context context, krb5_auth_context auth_context,
* MIT allocates the return structure for no good reason. We do
* likewise as, in this case, incompatibility is the greater evil.
*/
*ppdata = calloc(1, sizeof (*ppdata));
*ppdata = calloc(1, sizeof(**ppdata));
if (*ppdata) {
**ppdata = out_data;
} else {