From: Phil Sutter Date: Sun, 7 Aug 2016 11:19:01 +0000 (+0200) Subject: tc/m_gact: Fix action_a2n() return code check X-Git-Tag: v4.7.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c15feb99a42d21ab7d9653bccc9555526a65e2da;p=thirdparty%2Fiproute2.git tc/m_gact: Fix action_a2n() return code check The function returns zero on success. Reported-by: Mark Bloch Fixes: 69f5aff63c770b ("tc: use action_a2n() everywhere") Signed-off-by: Phil Sutter --- diff --git a/tc/m_gact.c b/tc/m_gact.c index c0a938c71..2bfd9a7c3 100644 --- a/tc/m_gact.c +++ b/tc/m_gact.c @@ -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; }