This fixes a problem where non-existent domains could cause the lua script to fail which would then leave the database connection open and eventually lead to denial of service when the database runs out of connections. Everyone using xml handler needs this update.

This commit is contained in:
Mark Crane
2013-05-20 11:38:58 +00:00
parent 1c17a78b12
commit 5e82f74005

View File

@@ -85,6 +85,11 @@
continue = false;
end
--prevent processing for invalid domains
if (domain_uuid == nil) then
continue = false;
end
--get the extension from the database
if (continue) then
sql = "SELECT * FROM v_extensions WHERE domain_uuid = '" .. domain_uuid .. "' and extension = '" .. user .. "' and enabled = 'true' ";