diff options
author | Kim Alvefur <zash@zash.se> | 2021-06-21 13:36:05 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-06-21 13:36:05 +0200 |
commit | 814a3a3482fb49f620f24f02b88be55136f8733b (patch) | |
tree | 290c0b28a01b84cf2dfc2fa7d99ec18bdad5293c /spec/util_dataforms_spec.lua | |
parent | b03eba05c8ac1682e6bde273e6e5b5ef929f6669 (diff) | |
download | prosody-814a3a3482fb49f620f24f02b88be55136f8733b.tar.gz prosody-814a3a3482fb49f620f24f02b88be55136f8733b.zip |
mod_c2s: Guard against LuaSec not returning TLS info (thanks Martin)
The :info() method has been observed to return nothing ... sometimes.
Unclear what causes it. Perhaps the TLS connection was shut down or
hasn't fully settled?
The LuaSec code has code paths that return nothing or nil, error, so it
is best to guard against it.
Diffstat (limited to 'spec/util_dataforms_spec.lua')
0 files changed, 0 insertions, 0 deletions