aboutsummaryrefslogtreecommitdiffstats
path: root/src/auc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auc.c')
-rw-r--r--src/auc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/auc.c b/src/auc.c
index f4d19a0..9c20db2 100644
--- a/src/auc.c
+++ b/src/auc.c
@@ -113,7 +113,9 @@ int auc_compute_vectors(struct osmo_auth_vector *vec, unsigned int num_vec,
if (aud3g) {
/* 3G or 3G + 2G case */
- if (auts) {
+ /* Do AUTS only for the first vector or we would use
+ * the same SQN for each following key. */
+ if ((i == 0) && auts) {
DBGP("vector [%u]: resync: auts = %s\n",
i, hex(auts, 14));
DBGP("vector [%u]: resync: rand_auts = %s\n",