Commit 9fe3d7e7 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix; osfeatures can be null, so check that first before

strstr call.
parent 32c67ad3
......@@ -597,7 +597,8 @@ parse_mfs_path(char *str, boot_what_t *info)
static void
parse_features(char *str, boot_what_t *info)
{
if (strstr(str, "ontrustedboot")) {
/* Note that features might be a null string; no features */
if (str && strstr(str, "ontrustedboot")) {
info->flags |= BIBOOTWHAT_FLAGS_SECURE;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment