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:
@@ -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
|
* MIT allocates the return structure for no good reason. We do
|
||||||
* likewise as, in this case, incompatibility is the greater evil.
|
* likewise as, in this case, incompatibility is the greater evil.
|
||||||
*/
|
*/
|
||||||
*ppdata = calloc(1, sizeof (*ppdata));
|
*ppdata = calloc(1, sizeof(**ppdata));
|
||||||
if (*ppdata) {
|
if (*ppdata) {
|
||||||
**ppdata = out_data;
|
**ppdata = out_data;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user