Fix: Don't try to execute empty Livestatus queries.

Fixes #5484
This commit is contained in:
Gunnar Beutner 2014-03-10 09:44:53 +01:00
parent a8a955ff9c
commit e8759a12a5
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,9 @@ void LivestatusListener::ClientHandler(const Socket::Ptr& client)
break;
}
if (lines.empty())
break;
Query::Ptr query = make_shared<Query>(lines, GetCompatLogPath());
if (!query->Execute(stream))
break;