summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_CT.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libxt_CT.c')
-rw-r--r--extensions/libxt_CT.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_CT.c b/extensions/libxt_CT.c
index 9f9d9524..6be6ea05 100644
--- a/extensions/libxt_CT.c
+++ b/extensions/libxt_CT.c
@@ -67,9 +67,9 @@ static uint32_t ct_parse_events(const struct event_tbl *tbl, unsigned int size,
strcpy(str, events);
while ((t = strsep(&e, ","))) {
for (i = 0; i < size; i++) {
- if (strcmp(t, tbl->name))
+ if (strcmp(t, tbl[i].name))
continue;
- mask |= 1 << tbl->event;
+ mask |= 1 << tbl[i].event;
break;
}