iproute_lwtunnel: Argument to strerror must be positive

Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
Phil Sutter 2017-08-17 19:09:31 +02:00 committed by Stephen Hemminger
parent 436270a45d
commit 58a15e6c7e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
if (err < 0) {
fprintf(stderr, "Failed to parse eBPF program: %s\n",
strerror(err));
strerror(-err));
return -1;
}
rta_nest_end(rta, nest);