]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix timestamp filling
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 4 Nov 2018 10:52:35 +0000 (10:52 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 4 Nov 2018 10:52:35 +0000 (10:52 +0000)
src/lua/lua_cryptobox.c

index 54b09a681dc056c1d7a12b3a9a16f3944aa2afad..70f29fa91fbae409df4cb3c1a6d8645817364f08 100644 (file)
@@ -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;