git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d22965e
)
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
Volker Lendecke
<vl@samba.org>
Thu, 30 Apr 2009 10:25:46 +0000
(12:25 +0200)
Thanks to Günther Deschner!
Volker
source3/smbd/notify_internal.c
patch
|
blob
|
history
diff --git
a/source3/smbd/notify_internal.c
b/source3/smbd/notify_internal.c
index a42404db3e6b4acbe99bca99ac6e61f90d6ed5a6..973db7b7b1d1bca4ff0443965fda61a5977d36db 100644
(file)
--- a/
source3/smbd/notify_internal.c
+++ b/
source3/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;