Skip to content

Commit 44d530b

Browse files
committed
totp: Use an output buffer to output
1 parent 6f602b7 commit 44d530b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/rlm_totp/totp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ int fr_totp_cmp(fr_totp_t const *cfg, request_t *request, time_t now, uint8_t co
145145

146146
if (RDEBUG_ENABLED3) {
147147
char buf_now[32], buf_then[32];
148-
fr_sbuff_t snow = FR_SBUFF_IN(buf_now, sizeof(buf_now));
149-
fr_sbuff_t sthen = FR_SBUFF_IN(buf_then, sizeof(buf_then));
148+
fr_sbuff_t snow = FR_SBUFF_OUT(buf_now, sizeof(buf_now));
149+
fr_sbuff_t sthen = FR_SBUFF_OUT(buf_then, sizeof(buf_then));
150150

151151
fr_time_strftime_local(&snow, fr_time_wrap(now), "%a %b %d %H:%M:%S %Y");
152152
fr_time_strftime_local(&sthen, fr_time_wrap(then), "%a %b %d %H:%M:%S %Y");

0 commit comments

Comments
 (0)