We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ea61d6 commit e7f14cfCopy full SHA for e7f14cf
backend/balboa-backend-console/main.c
@@ -1,5 +1,5 @@
1
// balboa
2
-// Copyright (c) 2019, DCSO GmbH
+// Copyright (c) 2019, 2020, DCSO GmbH
3
4
#include <arpa/inet.h>
5
#include <assert.h>
@@ -205,6 +205,10 @@ static int main_query(int argc, char** argv) {
205
theTrace_stream_use(&trace_config);
206
207
conn_t* conn = blb_engine_client_new(&engine_config);
208
+ if(conn == NULL) {
209
+ L(log_error("unable to connect to backend"));
210
+ return (-1);
211
+ }
212
engine_t* engine = conn->engine;
213
214
V(blb_protocol_log_query(query));
0 commit comments