From 96f2197494791f5884c01b5caa908074cc7e90a6 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 20 Feb 2011 15:16:04 -0500 Subject: [PATCH] fix null pointer dereference introduced in last sigprocmask commit --- src/signal/sigprocmask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1