diff options
Diffstat (limited to 'src/lib/crypto/krb/enc_old.c')
-rw-r--r-- | src/lib/crypto/krb/enc_old.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/crypto/krb/enc_old.c b/src/lib/crypto/krb/enc_old.c index f33cacb5c..e7160b169 100644 --- a/src/lib/crypto/krb/enc_old.c +++ b/src/lib/crypto/krb/enc_old.c @@ -104,6 +104,8 @@ krb5int_old_encrypt(const struct krb5_keytypes *ktp, krb5_key key, /* Use the key as the ivec for des-cbc-crc if none was provided. */ if (key->keyblock.enctype == ENCTYPE_DES_CBC_CRC && ivec == NULL) { ret = alloc_data(&crcivec, key->keyblock.length); + if (ret != 0) + goto cleanup; memcpy(crcivec.data, key->keyblock.contents, key->keyblock.length); ivec = &crcivec; } |