diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-12 10:39:12 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-12 10:39:48 +0200 |
commit | 1be3625e465d257e913a4cbb2b4329044a322e78 (patch) | |
tree | 70a5dcfd03bc9c1e0aab7b636133d34f07af90a9 /src/common.c | |
parent | 6257aaf53ede6456e28b0224d215c811f534ff35 (diff) |
Revert "common: Avoid integer overflow in nftnl_batch_is_supported()"
This patch accidentally slipped through. The sequence number
(uint32_t)-1 is fine in case time() fails.
So this reverts commit d26feca2c9c19b650b5a7554b5a412ceca990b7a.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/common.c b/src/common.c index 2189cc8..bf4176c 100644 --- a/src/common.c +++ b/src/common.c @@ -192,9 +192,6 @@ int nftnl_batch_is_supported(void) uint32_t seq = time(NULL), req_seq; int ret; - if (seq == (uint32_t)-1) - seq = 0; - nl = mnl_socket_open(NETLINK_NETFILTER); if (nl == NULL) return -1; |