ct: add missing slash to connlabel path
Pablo Neira Ayuso
maintainerPATCH 1/2 ct: add missing slash to connlabel path
If I configure nftables via:
./configure --prefix=/usr
the connlabel path breaks due to missing slash, so append this after DEFAULT_INCLUDE_PATH.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/ct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/ct.c +1 -1
@@ -29,7 +29,7 @@#include <utils.h> #include <statement.h> -#define CONNLABEL_CONF DEFAULT_INCLUDE_PATH "connlabel.conf" +#define CONNLABEL_CONF DEFAULT_INCLUDE_PATH "/connlabel.conf"static const struct symbol_table ct_state_tbl = { .symbols = {
Signature · 1 line
2.1.4
Pablo Neira Ayuso
maintainerPATCH 2/2 ct: release ct_label table on exit
Just like we do with other symbol tables.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/ct.c | 5 +++++ 1 file changed, 5 insertions(+)
src/ct.c +5 -0
@@ -164,6 +164,11 @@ static void __init ct_label_table_init(void) ct_label_tbl =rt_symbol_table_init (CONNLABEL_CONF ); } +static void __exit ct_label_table_exit(void) +{ +rt_symbol_table_free (ct_label_tbl); +} +#ifndef NF_CT_HELPER_NAME_LEN #define NF_CT_HELPER_NAME_LEN 16#endif
Signature · 1 line
2.1.4
Re: [PATCH 2/2 nft] ct: release ct_label table on exit
Quoted 3 lines · Pablo Neira Ayuso
Just like we do with other symbol tables.
Signed-off-by Pablo Neira Ayuso <[email protected]>
Acked-by Florian Westphal <[email protected]>
Quoted 8 lines · Pablo Neira Ayuso
If I configure nftables via:
./configure --prefix=/usrthe connlabel path breaks due to missing slash, so append this after
DEFAULT_INCLUDE_PATH.Signed-off-by Pablo Neira Ayuso <[email protected]>
Acked-by Florian Westphal <[email protected]>