summaryrefslogtreecommitdiff
path: root/sys/crypto/cryptosoft.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-23 05:01:54 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-23 05:01:54 +0000
commit5f26901cb1d06d6093c5f57ea4b9d7533a9784bd (patch)
tree753c2127581a61e6e02f049550f7589b0a5c70ae /sys/crypto/cryptosoft.c
parent01ba575a5c837cc682eeec39e1170084766348b4 (diff)
Change the type of freesession to take u_int64_t as argument.
Diffstat (limited to 'sys/crypto/cryptosoft.c')
-rw-r--r--sys/crypto/cryptosoft.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c
index 87e5909160a..f68b811aa70 100644
--- a/sys/crypto/cryptosoft.c
+++ b/sys/crypto/cryptosoft.c
@@ -564,11 +564,12 @@ swcr_newsession(u_int32_t *sid, struct cryptoini *cri)
* Free a session.
*/
int
-swcr_freesession(u_int32_t sid)
+swcr_freesession(u_int64_t tid)
{
struct swcr_data *swd;
struct enc_xform *txf;
struct auth_hash *axf;
+ u_int32_t sid = (tid >> 31) & 0xffff;
if ((sid > swcr_sesnum) || (swcr_sessions == NULL) ||
(swcr_sessions[sid] == NULL))