diff options
-rw-r--r-- | lib/libc/net/res_send.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index fc394ca..15f2a13 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; |