From 466a126c6971bd9342abde4bd443fd44f304c1f7 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 11 May 2012 07:57:01 -0400 Subject: [PATCH] The pointer to the siginfo_t struct in a signal handler may be NULL. --- src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec.c b/src/exec.c index 71b639bae..fd5cb26ae 100644 --- a/src/exec.c +++ b/src/exec.c @@ -636,7 +636,7 @@ handler_nofwd(int s, siginfo_t *info, void *context) unsigned char signo = (unsigned char)s; /* Only forward user-generated signals. */ - if (info->si_code <= 0) { + if (info == NULL || info->si_code <= 0) { /* * The pipe is non-blocking, if we overflow the kernel's pipe * buffer we drop the signal. This is not a problem in practice.