Propagate failure reason in spicy::decline_input/zeek::reject_protocol.

Closes #3276.
This commit is contained in:
Benjamin Bannier 2023-09-06 08:19:38 +02:00
parent 7e11501d3c
commit d7c3e0ac69
8 changed files with 50 additions and 7 deletions

View file

@ -275,7 +275,7 @@ void confirm_protocol();
*
* @param reason short description of what went wrong
*/
void reject_protocol(const std::string& reason);
void reject_protocol(const std::string& reason = "protocol rejected");
/**
* Opaque handle to a protocol analyzer.