* [PATCH nft] mnl: fix broken sequence number allocation
@ 2017-10-02 12:25 Pablo Neira Ayuso
0 siblings, 0 replies; only message in thread
From: Pablo Neira Ayuso @ 2017-10-02 12:25 UTC (permalink / raw)
To: netfilter-devel
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 <pablo@netfilter.org>
---
src/mnl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mnl.c b/src/mnl.c
index e2174925c121..808c34bf066b 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
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-10-02 12:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-02 12:25 [PATCH nft] mnl: fix broken sequence number allocation Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).