From: Rich Felker Date: Sun, 20 Feb 2011 20:16:04 +0000 (-0500) Subject: fix null pointer dereference introduced in last sigprocmask commit X-Git-Tag: v0.7.0~77 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=96f2197494791f5884c01b5caa908074cc7e90a6;p=oweals%2Fmusl.git fix null pointer dereference introduced in last sigprocmask commit --- diff --git a/src/signal/sigprocmask.c b/src/signal/sigprocmask.c index db27f12a..1bc5baa6 100644 --- a/src/signal/sigprocmask.c +++ b/src/signal/sigprocmask.c @@ -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);