auth_milenage: fix check against too large ind

To ensure that the IND index appended to SEQ does not affect the SEQ, the check
should read '>= seq_1', not '>'.

Change-Id: Ib1251159eee02aa07fae1b429ffec2e4604bf6a8
This commit is contained in:
Neels Hofmeyr 2017-03-16 05:30:11 +01:00
parent 8a5d60b996
commit e0cb0eeb3f
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ static int milenage_gen_vec(struct osmo_auth_vector *vec,
ind_mask = ~(seq_1 - 1);
/* the ind index must not affect the SEQ part */
if (aud->u.umts.ind > seq_1)
if (aud->u.umts.ind >= seq_1)
return -3;
/* keep the incremented SQN local until gsm_milenage() succeeded. */