Skip to content

Commit

Permalink
chilli: fix build with --enable-authedallowed (#525)
Browse files Browse the repository at this point in the history
The nousergardendata in the options struct is only defined if garden
accounting is also enabled.
  • Loading branch information
aleksander0m committed Feb 20, 2021
1 parent 090526b commit 05f9955
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chilli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 05f9955

Please sign in to comment.