diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index fc394ca54185..15f2a13b8ffa 100644 --- a/lib/libc/net/res_send.c +++ b/lib/libc/net/res_send.c @@ -665,7 +665,8 @@ read_len: pfd.fd = s; pfd.events = POLLIN; if (use_poll == 1) { - bzero(&sa, sizeof(sa)); + sigemptyset(&sa.sa_mask); + sa.sa_flags = 0; sa.sa_handler = SIG_IGN; if (sigaction(SIGSYS, &sa, &osa) >= 0) sigsys_installed = 1;