Fix build without BPF_JITTER option.
This commit is contained in:
parent
848c454cc1
commit
ae2cb97e54
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153214
@ -501,7 +501,9 @@ ng_bpf_setprog(hook_p hook, const struct ng_bpf_hookprog *hp0)
|
||||
{
|
||||
const hinfo_p hip = NG_HOOK_PRIVATE(hook);
|
||||
struct ng_bpf_hookprog *hp;
|
||||
#ifdef BPF_JITTER
|
||||
bpf_jit_filter *jit_prog;
|
||||
#endif
|
||||
int size;
|
||||
|
||||
/* Check program for validity */
|
||||
@ -525,7 +527,7 @@ ng_bpf_setprog(hook_p hook, const struct ng_bpf_hookprog *hp0)
|
||||
#ifdef BPF_JITTER
|
||||
if (hip->jit_prog != NULL)
|
||||
bpf_destroy_jit_filter(hip->jit_prog);
|
||||
#endif
|
||||
hip->jit_prog = jit_prog;
|
||||
#endif
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user