diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-06-20 05:40:39 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-06-20 05:40:39 +0000 |
commit | ba294770e4c2d61e9006665b7d0480f85e340f09 (patch) | |
tree | e10152d22b1a02fa129b245996d7e1ae0463626c /sys | |
parent | 56150382315a6fe8bce85ec3b9b15b0d244089cc (diff) |
Use crypto_done()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/crypto/cryptosoft.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c index add1b38c6f9..b0c7bc6d99d 100644 --- a/sys/crypto/cryptosoft.c +++ b/sys/crypto/cryptosoft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptosoft.c,v 1.11 2000/06/18 08:48:10 angelos Exp $ */ +/* $OpenBSD: cryptosoft.c,v 1.12 2000/06/20 05:40:38 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -640,8 +640,8 @@ swcr_process(struct cryptop *crp) u_int64_t nid; int type; - /* Some simple sanity checks */ - if ((crp == NULL) || (crp->crp_callback == NULL)) + /* Sanity check */ + if (crp == NULL) return EINVAL; if ((crp->crp_desc == NULL) || (crp->crp_buf == NULL)) @@ -728,7 +728,8 @@ swcr_process(struct cryptop *crp) crp->crp_sid = nid; } - return crp->crp_callback(crp); + crypto_done(crp); + return 0; } /* |