Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tools: ensure a bpf file is specified on the command line
(imported from commit 94d4292)
Signed-off-by: Paul Moore <paul@paul-moore.com>
  • Loading branch information
pcmoore committed Nov 7, 2019
1 parent c0f32c6 commit 1b6cfd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/scmp_bpf_sim.c
Expand Up @@ -340,6 +340,8 @@ int main(int argc, char *argv[])
exit_fault(ENOMEM);

/* load the bpf program */
if (opt_file == NULL)
exit_usage(argv[0]);
file = fopen(opt_file, "r");
if (file == NULL)
exit_fault(errno);
Expand Down

0 comments on commit 1b6cfd1

Please sign in to comment.