diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-06-06 06:43:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-06-06 06:43:39 +0000 |
commit | 26c9222be3f239ace5b28853a810731be89cb0a8 (patch) | |
tree | d3c943298c9ece81af68c1df1dd779f35b238735 /sys/crypto/cryptosoft.c | |
parent | 3853e014654bea96268b2eac974e620b674d8dcc (diff) |
fix cleanup of crypto sessions
Diffstat (limited to 'sys/crypto/cryptosoft.c')
-rw-r--r-- | sys/crypto/cryptosoft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c index 30ea70ac1f3..29687a14855 100644 --- a/sys/crypto/cryptosoft.c +++ b/sys/crypto/cryptosoft.c @@ -569,7 +569,7 @@ swcr_freesession(u_int64_t tid) struct swcr_data *swd; struct enc_xform *txf; struct auth_hash *axf; - u_int32_t sid = (tid >> 31) & 0xffffffff; + u_int32_t sid = ((u_int32_t) tid) & 0xffffffff; if ((sid > swcr_sesnum) || (swcr_sessions == NULL) || (swcr_sessions[sid] == NULL)) |