summaryrefslogtreecommitdiff
path: root/source3/smbd/notify_kernel.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-13 08:09:32 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-13 08:09:32 +0000
commit9742f673fdedb7146a6a6e7dc842147e8b5e3069 (patch)
tree02af271dfe09c0c7e6180037f0b48fd4b6ec0297 /source3/smbd/notify_kernel.c
parent13e1d993ff2b646cf83ca4762bdd725c02a4d82c (diff)
downloadsamba-9742f673fdedb7146a6a6e7dc842147e8b5e3069.tar.gz
samba-9742f673fdedb7146a6a6e7dc842147e8b5e3069.tar.bz2
samba-9742f673fdedb7146a6a6e7dc842147e8b5e3069.zip
Ensure we do not pass uninitialised data to the kernel. (Picked up by
valgrind). Andrew Bartlett (This used to be commit f8d9880c5f5321f4dba6b42896419412284c3e7b)
Diffstat (limited to 'source3/smbd/notify_kernel.c')
-rw-r--r--source3/smbd/notify_kernel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/notify_kernel.c b/source3/smbd/notify_kernel.c
index df553721ef..8b7ff21ecb 100644
--- a/source3/smbd/notify_kernel.c
+++ b/source3/smbd/notify_kernel.c
@@ -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;