mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags allows us to lose the bzero.
This commit is contained in:
parent
4c9d9fc620
commit
06ceca4d89
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user