[heartbeat] used the wrong variable for calculating the digest

This commit is contained in:
Bart Van Der Meerssche 2011-04-16 23:49:27 +02:00
parent f94e74ddc7
commit 30e0aabab1
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ end
-- verify the reply's digest
hash = nixio.crypto.hmac('sha1', WAN_KEY)
hash:update(response)
hash:update(response_json)
if call_info.headers['X-Digest'] ~= hash:final() then
nixio.syslog('err', 'Incorrect digest in the heartbeat reply. Discard response.')
os.exit(3)