mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
The pointer to the siginfo_t struct in a signal handler may be NULL.
This commit is contained in:
parent
0d69580776
commit
466a126c69
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user