No longer need to set AI_NUMERICSERV while fuzzing.

Now that getaddrinfo() is stubbed out while fuzzing we can remove
the hack that set AI_NUMERICSERV.
This commit is contained in:
Todd C. Miller
2023-04-28 13:26:53 -06:00
parent d1f2452c08
commit 978aa90021

View File

@@ -544,9 +544,6 @@ append_address(struct server_address_list *addresses, const char *str,
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE;
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
hints.ai_flags |= AI_NUMERICSERV;
#endif
error = getaddrinfo(host, port, &hints, &res0);
if (error != 0) {
sudo_gai_warn(error, U_("%s:%s"), host ? host : "*", port);