diff --git a/lib/krb5/get_for_creds.c b/lib/krb5/get_for_creds.c index 14a44f758..93c1d1b7b 100644 --- a/lib/krb5/get_for_creds.c +++ b/lib/krb5/get_for_creds.c @@ -64,7 +64,7 @@ krb5_get_forwarded_creds (krb5_context context, krb5_data enc_data; int32_t sec, usec; - out_creds = malloc(sizeof(*out_creds)); + out_creds = calloc(1, sizeof(*out_creds)); if (out_creds == NULL) return ENOMEM;