diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-23 22:36:11 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-23 22:36:11 +0000 |
commit | 78ee77e45460a963b48c4d45025ae0e93d794a97 (patch) | |
tree | 3e772f6d126f0fc2d200fa5d24d23c1e9edf5bd2 | |
parent | ad0ed468ad088f856250e96707f0f40be05bf5ab (diff) |
Initialize crd_skip
-rw-r--r-- | sys/crypto/cryptodev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c index bd7a16bb185..a94f6198e97 100644 --- a/sys/crypto/cryptodev.c +++ b/sys/crypto/cryptodev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.c,v 1.16 2001/06/23 21:56:58 angelos Exp $ */ +/* $OpenBSD: cryptodev.c,v 1.17 2001/06/23 22:36:10 angelos Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -358,6 +358,7 @@ crypto_op(struct csession *cse, struct crypt_op *cop, struct proc *p) goto bail; bcopy(cse->tmp_iv, crde->crd_iv, cse->txform->blocksize); crde->crd_flags |= CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT; + crde->crd_skip = 0; } else { crde->crd_flags |= CRD_F_IV_PRESENT; crde->crd_skip = cse->txform->blocksize; |