]> git.ipfire.org Git - thirdparty/samba.git/commit
rpc_host: Fix max_workers calculation
authorVolker Lendecke <vl@samba.org>
Sat, 14 Sep 2024 13:21:49 +0000 (15:21 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 20 Sep 2024 17:13:37 +0000 (17:13 +0000)
commite9538317d853c5951b1ebbe393c3abb60ac73124
treebe6707db9e9b0ee5f3d303526a5ae12dc3677a44
parent658b78a04811eb4d14ab66c74bc42c0bbc7aba99
rpc_host: Fix max_workers calculation

To limit max_workers into 16 bits, cap it at UINT16_MAX (65535, not 65536)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
source3/rpc_server/rpc_host.c