diff options
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_cryptobox.c | 2 |
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; |