From c1e2674fd4b5dd08abe07e9f3bbf92d34c096c56 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 22 Apr 2012 16:35:26 +0100 Subject: mod_component: Handle component connecting to non-existent host --- plugins/mod_component.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 96d55e40..5b1eefc7 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -149,7 +149,7 @@ function stream_callbacks.error(session, error, data, data2) end function stream_callbacks.streamopened(session, attr) - if not hosts[attr.to].modules.component then + if not hosts[attr.to] or not hosts[attr.to].modules.component then session:close{ condition = "host-unknown", text = tostring(attr.to).." does not match any configured external components" }; return; end -- cgit v1.2.3