Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137804751
D10273.id27040.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
546 B
Referenced Files
None
Subscribers
None
D10273.id27040.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10273: Don't leak a session and lock if a GMAC key has an invalid length.
Attached
Detach File
Event Timeline
Log In to Comment