summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index bf4176c..2189cc8 100644
--- a/src/common.c
+++ b/src/common.c
@@ -192,6 +192,9 @@ 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;