mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/awelzel/fix-listen-websocket-ubsan-port-count-confusion'
* origin/topic/awelzel/fix-listen-websocket-ubsan-port-count-confusion: cluster/cluster.bif: Fix CountVal casted to PortVal
This commit is contained in:
commit
68bc6111ed
3 changed files with 8 additions and 2 deletions
6
CHANGES
6
CHANGES
|
@ -1,3 +1,9 @@
|
||||||
|
7.2.0-dev.602 | 2025-04-23 15:55:46 +0200
|
||||||
|
|
||||||
|
* cluster/cluster.bif: Fix CountVal casted to PortVal (Arne Welzel, Corelight)
|
||||||
|
|
||||||
|
Thanks UBSAN!
|
||||||
|
|
||||||
7.2.0-dev.600 | 2025-04-23 15:07:47 +0200
|
7.2.0-dev.600 | 2025-04-23 15:07:47 +0200
|
||||||
|
|
||||||
* CI: No more Ubuntu 20.04 [skip ci] (Arne Welzel, Corelight)
|
* CI: No more Ubuntu 20.04 [skip ci] (Arne Welzel, Corelight)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
7.2.0-dev.600
|
7.2.0-dev.602
|
||||||
|
|
|
@ -197,7 +197,7 @@ function Cluster::__listen_websocket%(options: WebSocketServerOptions%): bool
|
||||||
static_cast<uint16_t>(options_rec->GetField<zeek::PortVal>("listen_port")->Port()),
|
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);
|
server_options.tls_options = std::move(tls_options);
|
||||||
|
|
||||||
auto result = zeek::cluster::manager->ListenWebSocket(server_options);
|
auto result = zeek::cluster::manager->ListenWebSocket(server_options);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue