summaryrefslogtreecommitdiffstats
path: root/source/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
commitf8d9880c5f5321f4dba6b42896419412284c3e7b (patch)
tree932497f79e366179318f29b0585964e2244c0f59 /source/smbd/notify_kernel.c
parent26660f939f0e0650d54631bf8243b22f32b64132 (diff)
downloadsamba-f8d9880c5f5321f4dba6b42896419412284c3e7b.tar.gz
samba-f8d9880c5f5321f4dba6b42896419412284c3e7b.tar.xz
samba-f8d9880c5f5321f4dba6b42896419412284c3e7b.zip
Ensure we do not pass uninitialised data to the kernel. (Picked up by
valgrind). Andrew Bartlett
Diffstat (limited to 'source/smbd/notify_kernel.c')
-rw-r--r--source/smbd/notify_kernel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/notify_kernel.c b/source/smbd/notify_kernel.c
index df553721ef7..8b7ff21ecb9 100644
--- a/source/smbd/notify_kernel.c
+++ b/source/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;