Skip to contentSkip to conversation

tc: m_ife: fix match tcindex parsing

PATCH In review Alexander Aring 2 participants 2 messages Oct 30, 2017 – Oct 31, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tc: m_ife: fix match tcindex parsing

This patch changes ife_prio to ife_tcindex which is right variable to assign in the argument in this case.

---
Found by inspection the code.

 tc/m_ife.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tc/m_ife.c +1 -1
index 5633ab90..8d0fd31f 100644
@@ -93,7 +93,7 @@ static int parse_ife(struct action_util *a, int *argc_p, char ***argv_p,
 			} else if (matches(*argv, "prio") == 0) {
 				ife_prio = IFE_META_PRIO;
 			} else if (matches(*argv, "tcindex") == 0) {
-				ife_prio = IFE_META_TCINDEX;
+				ife_tcindex = IFE_META_TCINDEX;
 			} else {
 				fprintf(stderr, "Illegal meta define <%s>\n",
 					*argv);
Signature · 1 line
2.11.0
#1 lore raw
Quoted 6 lines · On Mon, 30 Oct 2017 12:37:49 -0400 Alexander Aring <[email protected]> wrote:

This patch changes ife_prio to ife_tcindex which is right variable to assign in the argument in this case.

---
Found by inspection the code.

Good catch.
I wonder if anybody ever used or tested this code path. Unlikely