Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111316973
D35120.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
538 B
Referenced Files
None
Subscribers
None
D35120.diff
View Options
diff --git a/lib/libsecureboot/vets.c b/lib/libsecureboot/vets.c
--- a/lib/libsecureboot/vets.c
+++ b/lib/libsecureboot/vets.c
@@ -420,8 +420,9 @@
#endif
#ifdef TRUST_ANCHOR_STR
- ve_trust_anchors_add_buf(__DECONST(unsigned char *, TRUST_ANCHOR_STR),
- sizeof(TRUST_ANCHOR_STR));
+ if (TRUST_ANCHOR_STR != NULL && strlen(TRUST_ANCHOR_STR) != 0ul)
+ ve_trust_anchors_add_buf(__DECONST(unsigned char *,
+ TRUST_ANCHOR_STR), sizeof(TRUST_ANCHOR_STR));
#endif
once = (int) VEC_LEN(trust_anchors);
#ifdef VE_OPENPGP_SUPPORT
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 3, 6:41 AM (3 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16935886
Default Alt Text
D35120.diff (538 B)
Attached To
Mode
D35120: libsecureboot: Do not propagate empty string
Attached
Detach File
Event Timeline
Log In to Comment