summaryrefslogtreecommitdiff
path: root/crypto/openssl/crypto/modes/ccm128.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/modes/ccm128.c')
-rw-r--r--crypto/openssl/crypto/modes/ccm128.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/modes/ccm128.c b/crypto/openssl/crypto/modes/ccm128.c
index c9b35e5b35e5..3ce11d0d984c 100644
--- a/crypto/openssl/crypto/modes/ccm128.c
+++ b/crypto/openssl/crypto/modes/ccm128.c
@@ -87,7 +87,7 @@ int CRYPTO_ccm128_setiv(CCM128_CONTEXT *ctx,
ctx->nonce.c[11] = (u8)(mlen>>(32%(sizeof(mlen)*8)));
}
else
- *(u32*)(&ctx->nonce.c[8]) = 0;
+ ctx->nonce.u[1] = 0;
ctx->nonce.c[12] = (u8)(mlen>>24);
ctx->nonce.c[13] = (u8)(mlen>>16);