]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc/m_gact: Fix action_a2n() return code check
authorPhil Sutter <phil@nwl.cc>
Sun, 7 Aug 2016 11:19:01 +0000 (13:19 +0200)
committerStephen Hemminger <shemming@brocade.com>
Mon, 8 Aug 2016 15:52:47 +0000 (08:52 -0700)
The function returns zero on success.

Reported-by: Mark Bloch <markb@mellanox.com>
Fixes: 69f5aff63c770b ("tc: use action_a2n() everywhere")
Signed-off-by: Phil Sutter <phil@nwl.cc>
tc/m_gact.c

index c0a938c716b6a38d51b52801ab8fe1f320e73cf4..2bfd9a7c317e4f74453c33270c13084644894787 100644 (file)
@@ -73,7 +73,7 @@ get_act(char ***argv_p)
 {
        int n;
 
-       if (!action_a2n(**argv_p, &n, false)) {
+       if (action_a2n(**argv_p, &n, false)) {
                fprintf(stderr, "bad action type %s\n", **argv_p);
                return -10;
        }