]> 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:16:48 +0000 (15:16 +0200)
fixes #9322

lib/livestatus/livestatuslistener.cpp

index 83e2948adcdf3bff3f1d460b66792acf18575d5f..358fbb810e327b5475a7f8351f4719dcf5e51f22 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;