mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
cluster/cluster.bif: Fix CountVal casted to PortVal
Thanks UBSAN!
This commit is contained in:
parent
2b7b42e4df
commit
dc428b2da2
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ function Cluster::__listen_websocket%(options: WebSocketServerOptions%): bool
|
|||
static_cast<uint16_t>(options_rec->GetField<zeek::PortVal>("listen_port")->Port()),
|
||||
};
|
||||
|
||||
server_options.max_event_queue_size = options_rec->GetField<zeek::PortVal>("max_event_queue_size")->AsCount();
|
||||
server_options.max_event_queue_size = options_rec->GetField<zeek::CountVal>("max_event_queue_size")->Get();
|
||||
server_options.tls_options = std::move(tls_options);
|
||||
|
||||
auto result = zeek::cluster::manager->ListenWebSocket(server_options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue