diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-09-15 12:58:51 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-10-20 11:50:15 -0500 |
commit | 82e938d40482c4204047485108b5c145c0101b29 (patch) | |
tree | 101889adc232b23df1e53f33e797fd42ce530dd7 /sys/opencrypto/cryptosoft.c | |
parent | f64002f02d197d738df982cada3a82696430e136 (diff) | |
download | FreeBSD-src-82e938d40482c4204047485108b5c145c0101b29.zip FreeBSD-src-82e938d40482c4204047485108b5c145c0101b29.tar.gz |
MFC r262993:
some minor clean up.. Always _ZERO memory so mtx_init won't panic...
use the proper macro instead of hand rolling it...
Reviewed by: jhb (only the malloc change)
MFC after: 1 week
TAG: IPSEC-HEAD
Issue: #4841
Diffstat (limited to 'sys/opencrypto/cryptosoft.c')
-rw-r--r-- | sys/opencrypto/cryptosoft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c index 4095e89..a0875ff 100644 --- a/sys/opencrypto/cryptosoft.c +++ b/sys/opencrypto/cryptosoft.c @@ -1003,7 +1003,7 @@ swcr_process(device_t dev, struct cryptop *crp, int hint) goto done; } - lid = crp->crp_sid & 0xffffffff; + lid = CRYPTO_SESID2LID(crp->crp_sid); rw_rlock(&swcr_sessions_lock); if (swcr_sessions == NULL || lid >= swcr_sesnum || lid == 0 || swcr_sessions[lid] == NULL) { |