Skip to content

Commit

Permalink
fix crash when requesting invalid table name
Browse files Browse the repository at this point in the history
for example when doing http request accidentially on the livestatus socket:

    curl -vv --max-time 1 --unix-socket /omd/sites/dev/tmp/run/live http://test
  • Loading branch information
sni committed Nov 6, 2024
1 parent 6a5bb26 commit 6c78fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void Store::answerGetRequest(InputBuffer *input, OutputBuffer *output, const cha
}
Query query(input, output, table);

if(table->hasLogcache()) {
if(table && table->hasLogcache()) {
g_store->logCache()->lockLogCache();
// check if client is still connected, we might have waited too long for the lock
if(!output->isAlive(fd)) {
Expand Down

0 comments on commit 6c78fa2

Please sign in to comment.