summaryrefslogtreecommitdiff
path: root/src/libct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libct.c')
-rw-r--r--src/libct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libct.c b/src/libct.c
index 16ec4db..36aacbd 100644
--- a/src/libct.c
+++ b/src/libct.c
@@ -70,7 +70,7 @@ static void parse_proto(struct nfattr *attr, struct ctnl_tuple *tuple)
memset(tb, 0, CTA_PROTO_MAX * sizeof(struct nfattr *));
- nfnl_parse_nested(tb, CTA_IP_MAX, attr);
+ nfnl_parse_nested(tb, CTA_PROTO_MAX, attr);
if (tb[CTA_PROTO_NUM-1])
tuple->protonum = *(u_int8_t *)NFA_DATA(tb[CTA_PROTO_NUM-1]);