aboutsummaryrefslogtreecommitdiff
path: root/gencode.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-10-29 19:25:40 -0700
committerGuy Harris <guy@alum.mit.edu>2018-10-29 19:25:40 -0700
commitd9500279597993c5290c08ec095513e0de6ce8e3 (patch)
treedcec312d6fd956172baec4ddaff8350b9acfec65 /gencode.h
parent68e9a06ec1775c376820f0f0382e12cead0b0711 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gencode.h b/gencode.h
index 9920de7d..cc21e043 100644
--- a/gencode.h
+++ b/gencode.h
@@ -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 *,