diff --git a/lib/bpf.c b/lib/bpf.c index ae4d97dc..6b5a96d0 100644 --- a/lib/bpf.c +++ b/lib/bpf.c @@ -1795,8 +1795,10 @@ static int bpf_fetch_prog_relo(struct bpf_elf_ctx *ctx, const char *section, *sseen = true; ret = bpf_apply_relo_data(ctx, &data_relo, &data_insn); - if (ret < 0) + if (ret < 0) { + *lderr = true; return ret; + } memset(&prog, 0, sizeof(prog)); prog.type = ctx->type;