From: Phil Sutter Date: Thu, 17 Aug 2017 17:09:31 +0000 (+0200) Subject: iproute_lwtunnel: Argument to strerror must be positive X-Git-Tag: v4.13.0~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58a15e6c7e7cb4c0d25e6bb3762ac2b1c94ff523;p=thirdparty%2Fiproute2.git iproute_lwtunnel: Argument to strerror must be positive Signed-off-by: Phil Sutter --- diff --git a/ip/iproute_lwtunnel.c b/ip/iproute_lwtunnel.c index 5c0c7d110..e8cd505ab 100644 --- a/ip/iproute_lwtunnel.c +++ b/ip/iproute_lwtunnel.c @@ -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);