kdc: don't leak armor crypto in TGS path

9b55215a added support for FAST in the TGS (#805) but forgot to free the armor
crypto context.
This commit is contained in:
Luke Howard
2021-12-14 12:12:40 +11:00
parent f95f4bc99e
commit d8af2eb730

View File

@@ -2423,6 +2423,10 @@ out:
free(csec);
free(cusec);
if (r->armor_crypto) {
krb5_crypto_destroy(r->context, r->armor_crypto);
r->armor_crypto = NULL;
}
krb5_free_keyblock_contents(r->context, &r->reply_key);
krb5_free_keyblock_contents(r->context, &r->strengthen_key);