Skip to content

Commit

Permalink
cfg_handler: initialize all variables for zmq mode (#33)
Browse files Browse the repository at this point in the history
This fixes a crash on startup in zmq delivery mode
(when no ssl connection is configured).
  • Loading branch information
ustorbeck authored Jul 6, 2024
1 parent c493058 commit 8ef7b26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/cfg_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,10 @@ bool KafkaCfgHandler::lookup_kafka_parameters(const std::string &cfg_path,
}
} else {
params.insert({"ssl_key_location", "NULL"});
params.insert({"ssl_key_password", "NULL"});
params.insert({"ssl_certificate_location", "NULL"});
params.insert({"ssl_ca_location", "NULL"});
params.insert({"enable_ssl_certificate_verification", "NULL"});
}

return true;
Expand Down

0 comments on commit 8ef7b26

Please sign in to comment.