Software /
code /
prosody-modules
Changeset
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 |
parents | 938:d0e71a3bd2c4 |
children | 940:80ede103d7a3 |
files | mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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";