Page MenuHomeFreeBSD

D10273.id27040.diff
No OneTemporary

D10273.id27040.diff

Index: sys/opencrypto/cryptosoft.c
===================================================================
--- sys/opencrypto/cryptosoft.c
+++ sys/opencrypto/cryptosoft.c
@@ -930,8 +930,11 @@
axf = &auth_hash_nist_gmac_aes_256;
auth4common:
len = cri->cri_klen / 8;
- if (len != 16 && len != 24 && len != 32)
+ if (len != 16 && len != 24 && len != 32) {
+ swcr_freesession_locked(dev, i);
+ rw_runlock(&swcr_sessions_lock);
return EINVAL;
+ }
(*swd)->sw_ictx = malloc(axf->ctxsize, M_CRYPTO_DATA,
M_NOWAIT);

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 26, 11:35 PM (4 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26235320
Default Alt Text
D10273.id27040.diff (546 B)

Event Timeline