git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c500507
)
Fix notify_onelevel: notify is not necessarily enabled
author
Volker Lendecke
<vl@samba.org>
Thu, 30 Apr 2009 10:24:51 +0000
(12:24 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 28 Jul 2009 13:59:07 +0000
(15:59 +0200)
Thanks to Günther Deschner!
Volker
Signed-off-by: Michael Adam <obnox@samba.org>
source/smbd/notify_internal.c
patch
|
blob
|
history
diff --git
a/source/smbd/notify_internal.c
b/source/smbd/notify_internal.c
index b28e345671de26efa6cb42940fdc48293b5a32cd..6bb9d63d7793aceb876c78f705f63a856c87ac6d 100644
(file)
--- a/
source/smbd/notify_internal.c
+++ b/
source/smbd/notify_internal.c
@@
-786,6
+786,10
@@
void notify_onelevel(struct notify_context *notify, uint32_t action,
bool have_dead_entries = false;
int i;
+ if (notify == NULL) {
+ return;
+ }
+
array = talloc_zero(talloc_tos(), struct notify_entry_array);
if (array == NULL) {
return;