diff options
author | Mark Johnston <markj@FreeBSD.org> | 2023-06-12 16:09:54 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-06-12 16:52:24 +0000 |
commit | 9f7fdd8c1ab153104275e59b49b2d567cec95256 (patch) | |
tree | 420cb1e4d836e58c65fde9b0e2ab6fb5a54731a8 /sys/opencrypto | |
parent | 718d4a1d5643c2faf409001320c3fd64aae57638 (diff) |
crypto: Advance the correct pointer in crypto_cursor_copydata()
PR: 271766
Reported by: Michael Laß <bevan@bi-co.net>
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40468
Diffstat (limited to 'sys/opencrypto')
-rw-r--r-- | sys/opencrypto/criov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/opencrypto/criov.c b/sys/opencrypto/criov.c index c832a9af9eec..c1bd4919ec5c 100644 --- a/sys/opencrypto/criov.c +++ b/sys/opencrypto/criov.c @@ -591,7 +591,7 @@ crypto_cursor_copydata(struct crypto_buffer_cursor *cc, int size, void *vdst) remain = MIN(PAGE_SIZE - cc->cc_offset, cc->cc_buf_len); todo = MIN(remain, size); memcpy(dst, src, todo); - src += todo; + dst += todo; cc->cc_buf_len -= todo; if (todo < remain) { cc->cc_offset += todo; |