summaryrefslogtreecommitdiff
path: root/wsgitools/digest.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2009-02-27 02:27:29 +0100
committerHelmut Grohne <helmut@subdivi.de>2009-02-27 02:27:29 +0100
commitf4813885ceaebbf0c37fbca6764019c15950d6e7 (patch)
tree56b3d78328b10bd24e63c5ce7904452df7f11453 /wsgitools/digest.py
parent413f01607ba7110d297512eee59b8bb45b930450 (diff)
downloadwsgitools-f4813885ceaebbf0c37fbca6764019c15950d6e7.tar.gz
fixed bug in digest.MemoryNonceStore.checknonce
Diffstat (limited to 'wsgitools/digest.py')
-rwxr-xr-xwsgitools/digest.py2
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