summaryrefslogtreecommitdiff
path: root/sys/crypto/cryptosoft.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-23 05:04:14 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-23 05:04:14 +0000
commite8b13da3e0d6cb025712c16d03499e34582fe9de (patch)
treeb1343aecc7cf90e473043eb3a8acc0ca4245b74f /sys/crypto/cryptosoft.c
parent867d76536176279f454404264cf1d8711b742877 (diff)
Correct bitmask.
Diffstat (limited to 'sys/crypto/cryptosoft.c')
-rw-r--r--sys/crypto/cryptosoft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c
index f68b811aa70..30ea70ac1f3 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) & 0xffff;
+ u_int32_t sid = (tid >> 31) & 0xffffffff;
if ((sid > swcr_sesnum) || (swcr_sessions == NULL) ||
(swcr_sessions[sid] == NULL))