# HG changeset patch # User Kim Alvefur # Date 1364190005 -3600 # Node ID 1415fc2a0ac008ed848f3a6e66a55c73479ee334 # Parent d0e71a3bd2c43b9a94a8840a31f2d81330457921 mod_s2s_auth_fingerprint: Make sure we actually got a certificate diff -r d0e71a3bd2c4 -r 1415fc2a0ac0 mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua --- a/mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua Mon Mar 25 03:54:32 2013 +0100 +++ b/mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua Mon Mar 25 06:40:05 2013 +0100 @@ -27,7 +27,7 @@ local session, host, cert = event.session, event.host, event.cert; local host_fingerprints = fingerprints[host]; - if host_fingerprints then + if cert and host_fingerprints then local digest = cert:digest(digest_algo); if host_fingerprints[digest] then session.cert_chain_status = "valid";