From 08d47756d0a89616bd2d134de46e5f613f293e2b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 28 Jan 2018 09:17:03 +0100 Subject: executor: fix 32-bit support ipt_get_entries.entrytable must be pointer aligned, so in 32-bit build there is no padding before it. --- executor/common_linux.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index 30a5a0c49..d636c85f9 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -971,8 +971,7 @@ struct ipt_getinfo { struct ipt_get_entries { char name[32]; unsigned int size; - unsigned int pad; - char entrytable[1024]; + void* entrytable[1024 / sizeof(void*)]; }; struct xt_counters { -- cgit mrf-deployment