From: angelos Date: Sun, 23 Apr 2000 05:04:13 +0000 (+0000) Subject: Correct bitmask. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0bde452d44e86df40ab6174d76410ef101b4910c;p=openbsd Correct bitmask. --- 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))