ignore-des_cbc_encrypt-return-value-in-ticket5-decoding-20021027

This would be helpful. afs's des can't fail, and some des_cbc_encrypt's are
void,

[ don't bother checking the return value of des_cbc_encrypt ]
This commit is contained in:
Chaskiel M Grundman 2002-10-27 19:26:11 +00:00 committed by Jeffrey Hutzleman
parent 7d8d4f2865
commit 23bdfb0cda

View File

@ -300,9 +300,7 @@ krb5_des_decrypt(struct ktc_encryptionKey *key,
abort();
}
ret = des_cbc_encrypt(in, out, insz, s, &ivec, 0);
if (ret)
return ret;
des_cbc_encrypt(in, out, insz, s, &ivec, 0);
memcpy(cksum, (char *)out + CONFOUNDERSZ, cksumsz);
memset((char *)out + CONFOUNDERSZ, 0, cksumsz);