aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cesa/cesa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/cesa/cesa.c')
-rw-r--r--sys/dev/cesa/cesa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cesa/cesa.c b/sys/dev/cesa/cesa.c
index 11e2898c1526..04646f1f4bd3 100644
--- a/sys/dev/cesa/cesa.c
+++ b/sys/dev/cesa/cesa.c
@@ -1712,7 +1712,7 @@ cesa_process(device_t dev, struct cryptop *crp, int hint)
csp = crypto_get_params(crp->crp_session);
/* Check and parse input */
- if (crp->crp_ilen > CESA_MAX_REQUEST_SIZE) {
+ if (crypto_buffer_len(&crp->crp_buf) > CESA_MAX_REQUEST_SIZE) {
crp->crp_etype = E2BIG;
crypto_done(crp);
return (0);