Skip to content

Commit

Permalink
Merge pull request #2037 from rmetrich/oval-results
Browse files Browse the repository at this point in the history
Fix incorrect openscap-cpe-oval result filename
  • Loading branch information
jan-cerny authored Sep 25, 2023
2 parents 20c3315 + 1d7e7c7 commit 1c8f16d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CPE/cpe_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ struct oval_agent_session *cpe_session_lookup_oval_session(struct cpe_session *c
return NULL;
}

session = oval_agent_new_session(oval_model, prefixed_href);
char *base_name = oscap_basename(prefixed_href);
session = oval_agent_new_session(oval_model, base_name);
free(base_name);
if (session == NULL) {
oscap_seterr(OSCAP_EFAMILY_OSCAP, "Cannot create OVAL session for '%s' for CPE applicability checking", prefixed_href);
return NULL;
Expand Down

0 comments on commit 1c8f16d

Please sign in to comment.