Skip to content

Commit 36667eb

Browse files
committed
translation/Parser: allow SERVICE with execute_options==nullptr
It will be possible to specify services without a "main" ExecuteOptions instance, for example to disallow generic command execution, but allow certain services.
1 parent 343b949 commit 36667eb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/translation/Parser.cxx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3354,9 +3354,6 @@ TranslateParser::HandleRegularPacket(TranslationCommand command,
33543354
if (!IsValidNonEmptyString(string_payload))
33553355
throw std::runtime_error{"malformed SERVICE packet"};
33563356

3357-
if (response.execute_options == nullptr)
3358-
throw std::runtime_error{"misplaced SERVICE packet"};
3359-
33603357
execute_options = &response.service_execute_options.Add(alloc, string_payload.data());
33613358
SetChildOptions(execute_options->child_options);
33623359
return;

0 commit comments

Comments
 (0)