otp_authenticate(): set e_length correctly
authorfcusack <fcusack>
Wed, 8 Feb 2006 21:15:34 +0000 (21:15 +0000)
committerfcusack <fcusack>
Wed, 8 Feb 2006 21:15:34 +0000 (21:15 +0000)
src/modules/rlm_otp/otp_rlm.c

index 23a8b71..0f82394 100644 (file)
@@ -482,7 +482,7 @@ otp_authenticate(void *instance, REQUEST *request)
     if ((vp = pairfind(request->packet->vps, PW_STATE)) != NULL) {
       /* set expected State length */
       if (inst->allow_async)
-        e_length += inst->chal_len * 2 + 8 + 8 + 32; /* see otp_gen_state() */
+        e_length = inst->chal_len * 2 + 8 + 8 + 32; /* see otp_gen_state() */
       else
         e_length = 1;