summaryrefslogtreecommitdiff
path: root/security/fragroute/files/patch-mod.c
blob: 691fa3a79e44273d1eef6b5dab5b9a12051ac4b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- mod.c.orig	2020-03-22 06:34:47 UTC
+++ mod.c
@@ -151,7 +151,7 @@ mod_close(void)
 {
 	struct rule *rule;
 	
-	TAILQ_FOREACH_REVERSE(rule, &rules, next, head) {
+	TAILQ_FOREACH_REVERSE(rule, &rules, head, next) {
 		if (rule->mod->close != NULL)
 			rule->data = rule->mod->close(rule->data);
 		TAILQ_REMOVE(&rules, rule, next);