mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 05:17:54 +00:00
Avoid compilation errors if getaddrinfo() or freeaddrinfo() are macros.
If this is the case we probably can't stub out the functions but at least the fuzzer will compile.
This commit is contained in:
parent
7c5f0d3052
commit
3c9c8668c1
@ -177,6 +177,10 @@ fuzz_hook_stub(struct sudo_hook *hook)
|
||||
* can look up "localhost" and returns an error for anything else.
|
||||
*/
|
||||
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
||||
/* Avoid compilation errors if getaddrinfo() or freeaddrinfo() are macros. */
|
||||
# undef getaddrinfo
|
||||
# undef freeaddrinfo
|
||||
|
||||
int
|
||||
# ifdef HAVE_GETADDRINFO
|
||||
getaddrinfo(
|
||||
|
Loading…
x
Reference in New Issue
Block a user