summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-09 21:20:46 +0100
committerStefan Metzmacher <metze@samba.org>2007-11-09 21:23:14 +0100
commit1c87d791991c4a8adb839923361e9dfbe50f0603 (patch)
treeba08d0c216842be83e3fd8bd60fb80255bba421f
parent1a11cdf3f28b3cd419bab765895ac4837d3f638e (diff)
downloadsamba-1c87d791991c4a8adb839923361e9dfbe50f0603.tar.gz
samba-1c87d791991c4a8adb839923361e9dfbe50f0603.tar.bz2
samba-1c87d791991c4a8adb839923361e9dfbe50f0603.zip
prepare changes in ndr code
metze (This used to be commit 9ba00e7c167fb871a3d9acbd9fc5ce4e935d92c2)
-rw-r--r--source3/smbd/notify_internal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index 48ca572a25..2a2afe376b 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/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);
}