From: Alan T. DeKok Date: Mon, 21 Jan 2019 20:00:27 +0000 (-0500) Subject: only do clear if it's configured X-Git-Tag: release_3_0_18~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6018b5f8e2f807d60bdd2e454eabdb4e0262edb4;p=thirdparty%2Ffreeradius-server.git only do clear if it's configured --- diff --git a/src/modules/rlm_sqlippool/rlm_sqlippool.c b/src/modules/rlm_sqlippool/rlm_sqlippool.c index 1b352ef8588..3eb4f12a95d 100644 --- a/src/modules/rlm_sqlippool/rlm_sqlippool.c +++ b/src/modules/rlm_sqlippool/rlm_sqlippool.c @@ -557,7 +557,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_post_auth(void *instance, REQUEST *reque * we're only do 1 CLEAR per second. */ now = time(NULL); - if (inst->last_clear < now) { + if (inst->allocate_clear && *inst->allocate_clear && (inst->last_clear < now)) { inst->last_clear = now; DO_PART(allocate_begin);