Fix CID 505 - don't copy uninitialized memory.
authorJeremy Allison <jra@samba.org>
Sat, 12 Jan 2008 07:17:23 +0000 (23:17 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2008 07:17:23 +0000 (23:17 -0800)
Jeremy.
(This used to be commit 0d2c77e8d3a83f2c5e78fa076f22919ef9d124b9)

source3/smbd/notify.c

index 5c26cac21924b45b220960d4a65b02a9bc94674b..55009ce0b1c06d7d4f7b5fdb3aae4869b62205ad 100644 (file)
@@ -235,6 +235,7 @@ NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter,
                return NT_STATUS_NO_MEMORY;
        }
 
+       ZERO_STRUCT(e);
        e.path = fullpath;
        e.filter = filter;
        e.subdir_filter = 0;