diff options
author | 2000-04-23 05:04:13 +0000 | |
---|---|---|
committer | 2000-04-23 05:04:13 +0000 | |
commit | 0bde452d44e86df40ab6174d76410ef101b4910c (patch) | |
tree | 81beef38709188d2980be578ca729abf4e5e85d1 | |
parent | freesession takes u_int64_t (diff) | |
download | wireguard-openbsd-0bde452d44e86df40ab6174d76410ef101b4910c.tar.xz wireguard-openbsd-0bde452d44e86df40ab6174d76410ef101b4910c.zip |
Correct bitmask.
-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 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)) |