git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c57628
)
prepare changes in ndr code
author
Stefan Metzmacher
<metze@samba.org>
Fri, 9 Nov 2007 20:20:46 +0000
(21:20 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 9 Nov 2007 20:23:14 +0000
(21:23 +0100)
metze
source/smbd/notify_internal.c
patch
|
blob
|
history
diff --git
a/source/smbd/notify_internal.c
b/source/smbd/notify_internal.c
index 48ca572a25f91ba2f5909b8fdddacc46b6c7d3fe..2a2afe376bf3e6f8dbea1291bbbe7d3b2a2b968a 100644
(file)
--- a/
source/smbd/notify_internal.c
+++ b/
source/smbd/notify_internal.c
@@
-163,9
+163,8
@@
static NTSTATUS notify_load(struct notify_context *notify, struct db_record *rec
blob.data = (uint8 *)dbuf.dptr;
blob.length = dbuf.dsize;
- if (blob.length == 0) {
- status = NT_STATUS_OK;
- } else {
+ status = NT_STATUS_OK;
+ if (blob.length > 0) {
status = ndr_pull_struct_blob(&blob, notify->array, notify->array,
(ndr_pull_flags_fn_t)ndr_pull_notify_array);
}