diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index 04e3467b8..98ccae520 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -775,6 +775,8 @@ _key_schedule(krb5_context context, if(kt->schedule == NULL) return 0; + if (key->schedule != NULL) + return 0; ALLOC(key->schedule, 1); if(key->schedule == NULL) return ENOMEM;