summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_esp.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-13 13:42:03 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-13 13:42:03 +0000
commited5df046664e7a30ab18b240dffa816edd709a43 (patch)
treeecc3a709a63370268a3ca946dcfeaf5b809dd438 /sys/netinet/ip_esp.c
parentd1097d38cc5b3e7119973a2419cf8dfa77b09f5a (diff)
Use blocksize, not ivmask
Diffstat (limited to 'sys/netinet/ip_esp.c')
-rw-r--r--sys/netinet/ip_esp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c
index 415a56965f6..54d8659334c 100644
--- a/sys/netinet/ip_esp.c
+++ b/sys/netinet/ip_esp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp.c,v 1.65 2001/06/08 03:13:14 angelos Exp $ */
+/* $OpenBSD: ip_esp.c,v 1.66 2001/06/13 13:42:02 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -143,7 +143,7 @@ esp_init(struct tdb *tdbp, struct xformsw *xsp, struct ipsecinit *ii)
DPRINTF(("esp_init(): initialized TDB with enc algorithm %s\n",
txform->name));
- tdbp->tdb_ivlen = txform->ivmask;
+ tdbp->tdb_ivlen = txform->blocksize;
if (tdbp->tdb_flags & TDBF_HALFIV)
tdbp->tdb_ivlen /= 2;
}