mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
Ensure we do not pass uninitialised data to the kernel. (Picked up by
valgrind).
Andrew Bartlett
(This used to be commit f8d9880c5f
)
This commit is contained in:
parent
13e1d993ff
commit
9742f673fd
@ -215,6 +215,8 @@ struct cnotify_fns *kernel_notify_init(void)
|
||||
static struct cnotify_fns cnotify;
|
||||
struct sigaction act;
|
||||
|
||||
ZERO_STRUCT(act);
|
||||
|
||||
act.sa_handler = NULL;
|
||||
act.sa_sigaction = signal_handler;
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
|
@ -279,6 +279,8 @@ struct kernel_oplocks *linux_init_kernel_oplocks(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(act);
|
||||
|
||||
act.sa_handler = NULL;
|
||||
act.sa_sigaction = signal_handler;
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
|
Loading…
Reference in New Issue
Block a user