Software /
code /
prosody
Changeset
10309:2a31571efce0
net.server_epoll: Guard against nil return from TLS info method
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 06 Oct 2019 19:34:03 +0200 (2019-10-06) |
parents | 10308:48e392dbf6e7 |
children | 10310:b03065cd033a |
files | net/server_epoll.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Sun Oct 06 16:34:42 2019 +0200 +++ b/net/server_epoll.lua Sun Oct 06 19:34:03 2019 +0200 @@ -548,8 +548,8 @@ end local ok, err = self.conn:dohandshake(); if ok then - if self.conn.info then - local info = self.conn:info(); + local info = self.conn.info and self.conn:info(); + if type(info) == "table" then self:debug("TLS handshake complete (%s with %s)", info.protocol, info.cipher); else self:debug("TLS handshake complete");