From 0bde452d44e86df40ab6174d76410ef101b4910c Mon Sep 17 00:00:00 2001 From: angelos Date: Sun, 23 Apr 2000 05:04:13 +0000 Subject: [PATCH] Correct bitmask. --- sys/crypto/cryptosoft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.20.1