diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-14 09:39:40 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-08-14 10:22:35 -0700 |
commit | 777cbd9cfe7cd026315bfcbac15126512a016a90 (patch) | |
tree | fc766dd92e36449f039e5694941a96b4d19c41a8 /.tx | |
parent | a62e225e03d5f1118d4a29574517db69a8e8acb5 (diff) | |
download | subsurface-777cbd9cfe7cd026315bfcbac15126512a016a90.tar.gz |
Fix cloud storage authentication attempt counting
The authentication count was a static counter in the authentication
callback, which gets incremented until we consider the authentication to
have failed.
The problem with that is that it doesn't get incremented for just _one_
authentication operation, it gets incremented each time you try to load
or save, so eventually the code considers authentication to have failed
even if nothing ever went wrong.
This fixes it by making it static to the whole git-access file, and have
each operation clear it before starting a new remote access.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to '.tx')
0 files changed, 0 insertions, 0 deletions