diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-06-24 01:14:11 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-06-30 17:00:23 +0000 |
| commit | ba4c8cc6e810fc64e53d6ca539649932016ed1f7 (patch) | |
| tree | 0810aae79b6e7cda653c4fb46090986801d24c1c /sys | |
| parent | bcbbee810fc9733da27b31b23baeaa2e1af53232 (diff) | |
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/opencrypto/ktls_ocf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/opencrypto/ktls_ocf.c b/sys/opencrypto/ktls_ocf.c index ae2409d334e9..87cbf0bd3311 100644 --- a/sys/opencrypto/ktls_ocf.c +++ b/sys/opencrypto/ktls_ocf.c @@ -499,13 +499,14 @@ ktls_ocf_tls_cbc_decrypt(struct ktls_session *tls, iov[0].iov_base = &ad; iov[0].iov_len = sizeof(ad); skip = sizeof(*hdr) + AES_BLOCK_LEN; - for (i = 1, n = m; n != NULL; i++, n = n->m_next) { + for (i = 1, n = m; n != NULL; n = n->m_next) { if (n->m_len < skip) { skip -= n->m_len; continue; } iov[i].iov_base = mtod(n, char *) + skip; iov[i].iov_len = n->m_len - skip; + i++; skip = 0; } uio.uio_iov = iov; |
