diff options
author | Helmut Grohne <helmut@subdivi.de> | 2009-02-27 02:27:29 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2009-02-27 02:27:29 +0100 |
commit | f4813885ceaebbf0c37fbca6764019c15950d6e7 (patch) | |
tree | 56b3d78328b10bd24e63c5ce7904452df7f11453 /wsgitools/digest.py | |
parent | 413f01607ba7110d297512eee59b8bb45b930450 (diff) | |
download | wsgitools-f4813885ceaebbf0c37fbca6764019c15950d6e7.tar.gz |
fixed bug in digest.MemoryNonceStore.checknonce
Diffstat (limited to 'wsgitools/digest.py')
-rwxr-xr-x | wsgitools/digest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsgitools/digest.py b/wsgitools/digest.py index d57984d..bebb2e2 100755 --- a/wsgitools/digest.py +++ b/wsgitools/digest.py @@ -295,6 +295,8 @@ class MemoryNonceStore(NonceStoreBase): else: lower = mid + 1 + if len(self.nonces) <= lower: + return False (nt, nv, uses) = self.nonces[lower] if nt != nonce_time or nv != nonce_value: return False |