Skip to content

Commit 0464693

Browse files
czp182alandekok
authored andcommitted
fix: 1. typo
(rlm_sqlcounter: fix copy-paste bug in find_prev_reset() for "never" reset 413)
1 parent bf2ec91 commit 0464693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/rlm_sqlcounter/rlm_sqlcounter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static int find_prev_reset(rlm_sqlcounter_t *inst, fr_time_t now)
239239
tm->tm_mon -= num - 1;
240240
inst->last_reset = fr_time_from_sec(inst->utc ? timegm(tm) : mktime(tm));
241241
} else if (strcmp(inst->reset, "never") == 0) {
242-
inst->reset_time = fr_time_wrap(0);
242+
inst->last_reset = fr_time_wrap(0);
243243
} else {
244244
return -1;
245245
}

0 commit comments

Comments
 (0)