summaryrefslogtreecommitdiff
path: root/wsgitools
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools')
-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