summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpf_parser.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/bpf_parser.y b/bpf_parser.y
index c8d2a8f..0cf2a75 100644
--- a/bpf_parser.y
+++ b/bpf_parser.y
@@ -751,7 +751,8 @@ int compile_filter(char *file, int verbose, int bypass, int format,
slprintf(tmp_file, sizeof(tmp_file), "%s/.tmp-%u-%s", dir, rand(), base);
slprintf(cmd, sizeof(cmd), "cpp -I" PREFIX_STRING
"/etc/netsniff-ng/ %s > %s", file, tmp_file);
- system(cmd);
+ if (system(cmd) != 0)
+ panic("Failed to invoke C preprocessor!\n");
file = tmp_file;
xfree(a);