diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-30 03:18:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-30 03:18:05 +0000 |
commit | 5c21ff42b57ff72accc6b851a7aed9bd3c75b367 (patch) | |
tree | 88426ce3534527cccb7980cfb9375a9d0c13c56d | |
parent | 8d6b40935e06bb16541d3dbd8e9a3f51ef79f93d (diff) |
do the 3-DES key setup right, will ya?
-rw-r--r-- | sys/netinet/ip_esp_new.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_esp_new.c b/sys/netinet/ip_esp_new.c index e0acc45b63f..4d5db810178 100644 --- a/sys/netinet/ip_esp_new.c +++ b/sys/netinet/ip_esp_new.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp_new.c,v 1.7 1997/09/29 22:09:59 deraadt Exp $ */ +/* $OpenBSD: ip_esp_new.c,v 1.8 1997/09/30 03:18:04 deraadt Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -248,8 +248,8 @@ esp_new_init(struct tdb *tdbp, struct xformsw *xsp, struct mbuf *m) enc_keylen, (caddr_t) rk); des_set_key((caddr_t) rk, (caddr_t) (xd->edx_eks[0])); - des_set_key((caddr_t) rk + 2, (caddr_t) (xd->edx_eks[1])); - des_set_key((caddr_t) rk + 4, (caddr_t) (xd->edx_eks[2])); + des_set_key((caddr_t) (rk + 2), (caddr_t) (xd->edx_eks[1])); + des_set_key((caddr_t) (rk + 4), (caddr_t) (xd->edx_eks[2])); break; } |