iproute_lwtunnel: Argument to strerror must be positive
Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
436270a45d
commit
58a15e6c7e
|
|
@ -642,7 +642,7 @@ static int lwt_parse_bpf(struct rtattr *rta, size_t len,
|
||||||
err = bpf_parse_common(bpf_type, &cfg, &bpf_cb_ops, &x);
|
err = bpf_parse_common(bpf_type, &cfg, &bpf_cb_ops, &x);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
fprintf(stderr, "Failed to parse eBPF program: %s\n",
|
fprintf(stderr, "Failed to parse eBPF program: %s\n",
|
||||||
strerror(err));
|
strerror(-err));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
rta_nest_end(rta, nest);
|
rta_nest_end(rta, nest);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue