Skip to content

Commit

Permalink
Correctly skip "Signature" when parsing sds_index without spewing out…
Browse files Browse the repository at this point in the history
… an error
  • Loading branch information
Martin Preisler committed Apr 3, 2014
1 parent f5024e1 commit c1f9b12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DS/sds_index.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ static struct ds_sds_index* ds_sds_index_parse(xmlTextReaderPtr reader)
// ignore, extended-component can't be an XCCDF, therefore we are sure
// not to be able to dig any Benchmark @id from it
}
else if (strcmp(name, "Signature") == 0) {
// ignore, Signatures are to be checked externally, we don't load them in
}
else {
oscap_seterr(OSCAP_EFAMILY_XML, "Unknown element '%s' encountered while parsing Source DataStream to ds_sds_index, skipping...", name);
}
Expand Down

0 comments on commit c1f9b12

Please sign in to comment.