diff --git a/userspace/libscap/engine/bpf/scap_bpf.c b/userspace/libscap/engine/bpf/scap_bpf.c index f222d05806..01dc76c059 100644 --- a/userspace/libscap/engine/bpf/scap_bpf.c +++ b/userspace/libscap/engine/bpf/scap_bpf.c @@ -129,6 +129,7 @@ static struct bpf_engine* alloc_handle(scap_t* main_handle, char* lasterr_ptr) for(int j=0; j < BPF_PROG_ATTACHED_MAX; j++) { engine->m_attached_progs[j].fd = -1; + engine->m_attached_progs[j].efd = -1; } } return engine;