redirect: Fix broken list behaviour

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2017-10-22 03:13:47 +01:00
parent f2352546d4
commit 516823ae3c
+2 -1
View File
@@ -68,7 +68,8 @@ void lsi_redirect_profile_insert_rule(LsiRedirectProfile *self, LsiRedirect *red
/* Set head or prepend the rule */
if (self->op_table[op]) {
self->op_table[op] = redirect->next = self->op_table[op];
redirect->next = self->op_table[op];
self->op_table[op] = redirect;
} else {
self->op_table[op] = redirect;
}