diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2016-08-09 12:50:13 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-08-16 00:30:45 +0200 |
commit | 3f8d1216df7a4314fca77b6ee6fe9fc814fcd909 (patch) | |
tree | b0d75a31969c89544a0ad829172d08f76289f19c /engines | |
parent | Remove a stray unneeded line in 70-test_sslrecords.t (diff) | |
download | openssl-3f8d1216df7a4314fca77b6ee6fe9fc814fcd909.tar.xz openssl-3f8d1216df7a4314fca77b6ee6fe9fc814fcd909.zip |
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>
Diffstat (limited to 'engines')
-rw-r--r-- | engines/afalg/e_afalg.c | 2 |
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; |