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
Thu, Feb 26, 3:06 AM (19 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28999932
Default Alt Text
D10273.id27040.diff (546 B)

Event Timeline