aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2016-08-09 12:50:13 +0200
committerMatt Caswell <matt@openssl.org>2016-08-15 23:30:45 +0100
commit3f8d1216df7a4314fca77b6ee6fe9fc814fcd909 (patch)
treeb0d75a31969c89544a0ad829172d08f76289f19c
parentbb982ce7532eb5f5f8d66211d556940a7f407496 (diff)
downloadopenssl-3f8d1216df7a4314fca77b6ee6fe9fc814fcd909.tar.gz
Fix af_alg engine failure on 32 bit architectures.
Add extra cast to unsigned long to avoid sign extension when converting pointer to 64 bit data. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
-rw-r--r--engines/afalg/e_afalg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/afalg/e_afalg.c b/engines/afalg/e_afalg.c
index 2e7ce3455a..456ffda9aa 100644
--- a/engines/afalg/e_afalg.c
+++ b/engines/afalg/e_afalg.c
@@ -230,7 +230,7 @@ int afalg_fin_cipher_aio(afalg_aio *aio, int sfd, unsigned char *buf,
memset(cb, '\0', sizeof(*cb));
cb->aio_fildes = sfd;
cb->aio_lio_opcode = IOCB_CMD_PREAD;
- cb->aio_buf = (uint64_t)buf;
+ cb->aio_buf = (uint64_t)(unsigned long)buf;
cb->aio_offset = 0;
cb->aio_data = 0;
cb->aio_nbytes = len;