mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-08 07:42:09 +03:00
fix null pointer dereference introduced in last sigprocmask commit
This commit is contained in:
parent
eee150f39c
commit
96f2197494
@ -12,7 +12,7 @@ int __sigprocmask(int how, const sigset_t *set, sigset_t *old)
|
||||
{
|
||||
sigset_t tmp;
|
||||
/* Disallow blocking thread control signals */
|
||||
if (how != SIG_UNBLOCK) {
|
||||
if (set && how != SIG_UNBLOCK) {
|
||||
tmp = *set;
|
||||
set = &tmp;
|
||||
sigdelset(&tmp, SIGCANCEL);
|
||||
|
Loading…
Reference in New Issue
Block a user