diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-10-29 19:25:40 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-10-29 19:25:40 -0700 |
commit | d9500279597993c5290c08ec095513e0de6ce8e3 (patch) | |
tree | dcec312d6fd956172baec4ddaff8350b9acfec65 /gencode.h | |
parent | 68e9a06ec1775c376820f0f0382e12cead0b0711 (diff) |
finish_parse() has to catch bpf_error() exceptions, too.
Do so, and return -1 on an error and 0 otherwise. Check the return
value when it's called.
Diffstat (limited to 'gencode.h')
-rw-r--r-- | gencode.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -370,7 +370,7 @@ int bpf_optimize(struct icode *, char *); void bpf_set_error(compiler_state_t *, const char *, ...) PCAP_PRINTFLIKE(2, 3); -void finish_parse(compiler_state_t *, struct block *); +int finish_parse(compiler_state_t *, struct block *); char *sdup(compiler_state_t *, const char *); struct bpf_insn *icode_to_fcode(struct icode *, struct block *, u_int *, |