summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2003-05-30 03:33:23 +0000
committerjason <jason@openbsd.org>2003-05-30 03:33:23 +0000
commitd3b50c6593aa9734a601d5c27e871bdb344d5f9f (patch)
tree4a137789e8f838be944cddd825921674cf85a87f
parentFix botch in tag array indexing. deal with 0 - DT_NUM, (diff)
downloadwireguard-openbsd-d3b50c6593aa9734a601d5c27e871bdb344d5f9f.tar.xz
wireguard-openbsd-d3b50c6593aa9734a601d5c27e871bdb344d5f9f.zip
move max limit back down to 65536-4
-rw-r--r--sys/crypto/cryptodev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c
index 25386790a0a..25b91cd5ba2 100644
--- a/sys/crypto/cryptodev.c
+++ b/sys/crypto/cryptodev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.c,v 1.55 2002/11/21 19:34:25 jason Exp $ */
+/* $OpenBSD: cryptodev.c,v 1.56 2003/05/30 03:33:23 jason Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -301,7 +301,7 @@ cryptodev_op(struct csession *cse, struct crypt_op *cop, struct proc *p)
struct cryptodesc *crde = NULL, *crda = NULL;
int i, error;
- if (cop->len > 256*1024-4)
+ if (cop->len > 64*1024-4)
return (E2BIG);
if (cse->txform && (cop->len % cse->txform->blocksize) != 0) {