Skip to content

Commit

Permalink
Fix unwrapped empty optional error for default ECH in FizzTool
Browse files Browse the repository at this point in the history
Summary:
Fixes a bug where the default ECH cli argument in the client fizz tool attempts to
unwrap an empty optional.

Reviewed By: knekritz

Differential Revision: D55922129

fbshipit-source-id: 5209eb20be0a5cc98d293830264e7a800a97e63c
  • Loading branch information
Nick Richardson authored and facebook-github-bot committed Apr 9, 2024
1 parent a28e072 commit 551ade1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fizz/tool/FizzClientCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ int fizzClientCommand(const std::vector<std::string>& args) {

if (ech) {
// Use default ECH config values.
echConfigList = ech::ECHConfigList{};
auto echConfigContents = getDefaultECHConfigs();
echConfigList->configs = std::move(echConfigContents);
} else if (!echConfigsBase64.empty()) {
Expand Down

0 comments on commit 551ade1

Please sign in to comment.