mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Ensure we do not pass uninitialised data to the kernel. (Picked up by
valgrind). Andrew Bartlett
This commit is contained in:
parent
26660f939f
commit
f8d9880c5f
@ -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…
x
Reference in New Issue
Block a user