diff options
-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; } /* |