1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:18:12 +00:00

nc: Fix overflow in port and local_port argument

This commit is contained in:
Fabian Dellwing 2023-04-27 12:59:59 +02:00 committed by Ali Mohammad Pur
parent 4ebc7306da
commit 006d2e6508

View file

@ -52,8 +52,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
bool udp_mode = false;
bool numeric_mode = false;
DeprecatedString target;
int port = 0;
int local_port = 0;
u16 port = 0;
u16 local_port = 0;
int maximum_tcp_receive_buffer_size_input = -1;
Core::ArgsParser args_parser;