heimdal - fix overlapped identifiers in the "krb5" library

heimdal - fix overlapped identifiers in the "krb5" library

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Matthias Dieter Wallnöfer
2010-03-16 15:53:39 +01:00
committed by Love Hornquist Astrand
parent 50990d61cf
commit 69ea9b38e9
3 changed files with 11 additions and 11 deletions

View File

@@ -2044,13 +2044,13 @@ evp_encrypt(krb5_context context,
c = encryptp ? &ctx->ectx : &ctx->dctx;
if (ivec == NULL) {
/* alloca ? */
size_t len = EVP_CIPHER_CTX_iv_length(c);
void *loiv = malloc(len);
size_t len2 = EVP_CIPHER_CTX_iv_length(c);
void *loiv = malloc(len2);
if (loiv == NULL) {
krb5_clear_error_message(context);
return ENOMEM;
}
memset(loiv, 0, len);
memset(loiv, 0, len2);
EVP_CipherInit_ex(c, NULL, NULL, NULL, loiv, -1);
free(loiv);
} else