aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_cryptobox.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-04 10:52:35 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-04 10:52:35 +0000
commit13e8a07177e7fbf6e02b447176fa9ec20f505490 (patch)
treea01ea7c6f64e87add828920007b74beb9ae08096 /src/lua/lua_cryptobox.c
parent3b05acf8ab3fcd31d31cfbf71761a27936bcffaf (diff)
downloadrspamd-13e8a07177e7fbf6e02b447176fa9ec20f505490.tar.gz
rspamd-13e8a07177e7fbf6e02b447176fa9ec20f505490.zip
[Minor] Fix timestamp filling
Diffstat (limited to 'src/lua/lua_cryptobox.c')
-rw-r--r--src/lua/lua_cryptobox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_cryptobox.c b/src/lua/lua_cryptobox.c
index 54b09a681..70f29fa91 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;