Skip to content

Commit 8ef7b26

Browse files
authored
cfg_handler: initialize all variables for zmq mode (#33)
This fixes a crash on startup in zmq delivery mode (when no ssl connection is configured).
1 parent c493058 commit 8ef7b26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/cfg_handler.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,8 +1086,10 @@ bool KafkaCfgHandler::lookup_kafka_parameters(const std::string &cfg_path,
10861086
}
10871087
} else {
10881088
params.insert({"ssl_key_location", "NULL"});
1089+
params.insert({"ssl_key_password", "NULL"});
10891090
params.insert({"ssl_certificate_location", "NULL"});
10901091
params.insert({"ssl_ca_location", "NULL"});
1092+
params.insert({"enable_ssl_certificate_verification", "NULL"});
10911093
}
10921094

10931095
return true;

0 commit comments

Comments
 (0)