1
0
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:
Andrew Bartlett 2003-01-13 08:09:32 +00:00
parent 13e1d993ff
commit 9742f673fd
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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;