summaryrefslogtreecommitdiffstats
path: root/src/modules/rlm_yubikey/decrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/rlm_yubikey/decrypt.c')
-rw-r--r--src/modules/rlm_yubikey/decrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/rlm_yubikey/decrypt.c b/src/modules/rlm_yubikey/decrypt.c
index 20b6df8..2bf4543 100644
--- a/src/modules/rlm_yubikey/decrypt.c
+++ b/src/modules/rlm_yubikey/decrypt.c
@@ -106,7 +106,7 @@ rlm_rcode_t rlm_yubikey_decrypt(rlm_yubikey_t *inst, REQUEST *request, char cons
* Combine the two counter fields together so we can do
* replay attack checks.
*/
- counter = (yubikey_counter(token.ctr) << 16) | token.use;
+ counter = (yubikey_counter(token.ctr) << 8) | token.use;
vp = fr_pair_make(request->packet, &request->packet->vps, "Yubikey-Counter", NULL, T_OP_SET);
if (!vp) {