]> granicus.if.org Git - icinga2/commitdiff
Fix query processing for Livestatus queries which use KeepAlive
authorGunnar Beutner <gunnar@beutner.name>
Fri, 16 Oct 2015 13:11:32 +0000 (15:11 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Fri, 16 Oct 2015 13:12:05 +0000 (15:12 +0200)
fixes #9322

lib/livestatus/livestatuslistener.cpp

index 14304676e068b32fe313877b49da3bb62440996c..b12a6b0767b69e23e6ef526d52e080707e302ac1 100644 (file)
@@ -177,9 +177,10 @@ void LivestatusListener::ClientHandler(const Socket::Ptr& client)
 
        Stream::Ptr stream = new NetworkStream(client);
 
+       StreamReadContext context;
+
        for (;;) {
                String line;
-               StreamReadContext context;
 
                std::vector<String> lines;