From: Vsevolod Stakhov Date: Sun, 4 Nov 2018 10:52:35 +0000 (+0000) Subject: [Minor] Fix timestamp filling X-Git-Tag: 1.8.2~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13e8a07177e7fbf6e02b447176fa9ec20f505490;p=thirdparty%2Frspamd.git [Minor] Fix timestamp filling --- diff --git a/src/lua/lua_cryptobox.c b/src/lua/lua_cryptobox.c index 54b09a681d..70f29fa91f 100644 --- a/src/lua/lua_cryptobox.c +++ b/src/lua/lua_cryptobox.c @@ -1984,7 +1984,7 @@ lua_cryptobox_decrypt_cookie (lua_State *L) EVP_CIPHER_CTX_set_padding (ctx, 0); /* Copy time */ - memcpy (&ts, nonce + sizeof (guint64) + sizeof (guint32), sizeof (ts)); + memcpy (&ts, src + sizeof (guint64) + sizeof (guint32), sizeof (ts)); ts = GUINT32_FROM_LE (ts); bklen = sizeof (nonce); blk = nonce;