]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
iproute_lwtunnel: Argument to strerror must be positive
authorPhil Sutter <phil@nwl.cc>
Thu, 17 Aug 2017 17:09:31 +0000 (19:09 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 18 Aug 2017 16:13:17 +0000 (09:13 -0700)
Signed-off-by: Phil Sutter <phil@nwl.cc>
ip/iproute_lwtunnel.c

index 5c0c7d110d23e07f72ec55d1f6d6d51d2fe71f8c..e8cd505abab2b6f2b6436da555f3903ee6d9eb09 100644 (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);