From 38c7c944cad7b5c7d5a0e8419745a077b56289d6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 15 Nov 2021 13:31:06 +0100 Subject: mod_admin_shell: Handle absence of connection in security column (thanks arcseconds) I surmise this can happen in a disconnected/smacks hibernation state. --- plugins/mod_admin_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_admin_shell.lua') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 94b428a3..d0affcaf 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -710,7 +710,7 @@ local available_columns = { width = 11; mapper = function(conn, session) if not session.secure then return "insecure"; end - if not conn:ssl() then return "secure" end + if not conn or not conn:ssl() then return "secure" end local sock = conn and conn:socket(); if not sock then return "unknown TLS"; end local tls_info = sock.info and sock:info(); -- cgit v1.2.3