kdc: Fix warnings

This commit is contained in:
Nicolas Williams
2022-01-14 17:58:19 -06:00
parent 5a3706db5b
commit cf2bab411d
4 changed files with 7 additions and 4 deletions

View File

@@ -1466,6 +1466,10 @@ _kdc_do_digest(krb5_context context,
ret = krb5_encrypt_EncryptedData(context, crypto, KRB5_KU_DIGEST_ENCRYPT,
buf.data, buf.length, 0,
&rep.innerRep);
if (ret) {
krb5_prepend_error_message(context, ret, "Failed to encrypt digest: ");
goto out;
}
ASN1_MALLOC_ENCODE(DigestREP, reply->data, reply->length, &rep, &size, ret);
if (ret) {