Commit 2d7107c91a0a2cbcef9b8662df51ca63b734b5c8

Authored by Wiebe Cazemier
1 parent 56cf59e3

Fix likely cause of segfault in keepalive handling

It needs to be fixed anyway, but I'm not 100% sure whether this was the
cause of the crash on the demo server.
Showing 1 changed file with 2 additions and 1 deletions
threaddata.cpp
@@ -165,7 +165,8 @@ void ThreadData::doKeepAliveCheck() @@ -165,7 +165,8 @@ void ThreadData::doKeepAliveCheck()
165 } 165 }
166 else 166 else
167 { 167 {
168 - client->resetBuffersIfEligible(); 168 + if (client)
  169 + client->resetBuffersIfEligible();
169 it++; 170 it++;
170 } 171 }
171 } 172 }