Skip to contentSkip to conversation

conntrack: fix stop timestamp assignment

PATCH In review Ken-ichirou MATSUZAWA 2 participants 2 messages Jul 7, 2015 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 conntrack: fix stop timestamp assignment

---
 src/conntrack/parse_mnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/conntrack/parse_mnl.c +1 -1
index 5da9933..2582cd7 100644
@@ -766,7 +766,7 @@ nfct_parse_timestamp(const struct nlattr *attr, struct nf_conntrack *ct)
 	}
 	if (tb[CTA_TIMESTAMP_STOP]) {
 		ct->timestamp.stop =
-			be64toh(mnl_attr_get_u64(tb[CTA_TIMESTAMP_START]));
+			be64toh(mnl_attr_get_u64(tb[CTA_TIMESTAMP_STOP]));
 		set_bit(ATTR_TIMESTAMP_STOP, ct->head.set);
 	}
 
Signature · 1 line
2.1.4
maintainer
#1 lore raw

src/conntrack/parse_mnl.c nfct_parse_timestamp(const struct nlattr *attr, struct nf_conntrack *ct) · line 770

Quoted 5 lines · Ken-ichirou MATSUZAWA
src/conntrack/parse_mnl.c +1 -1
 	if (tb[CTA_TIMESTAMP_STOP]) {
 		ct->timestamp.stop =
-			be64toh(mnl_attr_get_u64(tb[CTA_TIMESTAMP_START]));
+			be64toh(mnl_attr_get_u64(tb[CTA_TIMESTAMP_STOP]));
 		set_bit(ATTR_TIMESTAMP_STOP, ct->head.set);

Good catch, applied, thanks a lot!