From dc428b2da251473f2abd01449d9b997ef6c3fa0c Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Wed, 23 Apr 2025 15:48:09 +0200 Subject: [PATCH] cluster/cluster.bif: Fix CountVal casted to PortVal Thanks UBSAN! --- src/cluster/cluster.bif | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster/cluster.bif b/src/cluster/cluster.bif index 84e86798c9..fc5a341f9e 100644 --- a/src/cluster/cluster.bif +++ b/src/cluster/cluster.bif @@ -197,7 +197,7 @@ function Cluster::__listen_websocket%(options: WebSocketServerOptions%): bool static_cast(options_rec->GetField("listen_port")->Port()), }; - server_options.max_event_queue_size = options_rec->GetField("max_event_queue_size")->AsCount(); + server_options.max_event_queue_size = options_rec->GetField("max_event_queue_size")->Get(); server_options.tls_options = std::move(tls_options); auto result = zeek::cluster::manager->ListenWebSocket(server_options);