From 5959ffe570dff3848f471e32dad3104c92f0d256 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 1 Feb 2021 20:19:49 +0100 Subject: [PATCH] chilli: fix build with --enable-authedallowed The nousergardendata in the options struct is only defined if garden accounting is also enabled. --- src/chilli.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/chilli.c b/src/chilli.c index 0a7ba30b..8eed2e69 100644 --- a/src/chilli.c +++ b/src/chilli.c @@ -5756,8 +5756,10 @@ int chilli_acct_fromsub(struct app_conn_t *appconn, /* * Change to garden accounting. */ +#ifdef ENABLE_GARDENACCOUNTING if (_options.nousergardendata) is_garden = 1; +#endif #ifdef ENABLE_LEAKYBUCKET do_bw = 0; if (_options.debug) @@ -5883,8 +5885,10 @@ int chilli_acct_tosub(struct app_conn_t *appconn, /* * Change to garden accounting. */ +#ifdef ENABLE_GARDENACCOUNTING if (_options.nousergardendata) is_garden = 1; +#endif #ifdef ENABLE_LEAKYBUCKET do_bw = 0; #endif