diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-09-21 19:04:07 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2010-09-21 19:04:07 +0200 |
commit | cd8e810302c089826723f80fc36c1fc4dc7b4385 (patch) | |
tree | 56ac75b918bf30236578ae4a98dfd3dd7b756c8e /openbsc | |
parent | 0230b34dc5ea2e9f8ef1ee34b612a7165315bb5b (diff) |
auth: Fix AuthTupe re-use condition
It's not the key_seq of the last authtuple we must check, but
the one sent by the MS.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/auth.c b/openbsc/src/auth.c index 91039016e..ee1e291c4 100644 --- a/openbsc/src/auth.c +++ b/openbsc/src/auth.c @@ -87,7 +87,7 @@ int auth_get_tuple_for_subscr(struct gsm_auth_tuple *atuple, /* If possible, re-use the last tuple and skip auth */ rc = db_get_lastauthtuple_for_subscr(atuple, subscr); if ((rc == 0) && - (atuple->key_seq != GSM_KEY_SEQ_INVAL) && + (key_seq != GSM_KEY_SEQ_INVAL) && (atuple->use_count < 3)) { atuple->use_count++; |