Software /
code /
prosody-modules
Diff
mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua @ 939:1415fc2a0ac0
mod_s2s_auth_fingerprint: Make sure we actually got a certificate
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 25 Mar 2013 06:40:05 +0100 |
parent | 938:d0e71a3bd2c4 |
child | 1131:e7b69d12fbfb |
line wrap: on
line diff
--- 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";