From 438235af5453d34fb056e7230d5a5ad827e61c0d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 2 Oct 2017 14:19:15 +0200 Subject: mnl: fix broken sequence number allocation Wrong arithmetics with pointer. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1178 Fixes: 0d9d04c31481 ("src: make netlink sequence number non-static") Signed-off-by: Pablo Neira Ayuso --- src/mnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mnl.c') diff --git a/src/mnl.c b/src/mnl.c index e2174925..808c34bf 100644 --- a/src/mnl.c +++ b/src/mnl.c @@ -32,7 +32,7 @@ uint32_t mnl_seqnum_alloc(unsigned int *seqnum) { - return *seqnum++; + return (*seqnum)++; } /* The largest nf_tables netlink message is the set element message, which -- cgit v1.2.3