er, the parameter is only known as h inside the called function

This commit is contained in:
Seth Schoen 2012-07-14 17:18:22 -07:00
parent 088c97bbf5
commit 1fd5ae1c9d

View file

@ -213,7 +213,7 @@ class session(object):
self.die(r, r.BadRequest, uri="https://ca.example.com/failures/missingrequest")
return
# Check hashcash before doing any crypto or database access.
if not m.request.clientpuzzle or not self.check_hashcash(h):
if not m.request.clientpuzzle or not self.check_hashcash(m.request.clientpuzzle):
self.die(r, r.NeedClientPuzzle, uri="https://ca.example.com/failures/hashcash")
return
if self.request_made():