From 1c87d791991c4a8adb839923361e9dfbe50f0603 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 9 Nov 2007 21:20:46 +0100 Subject: prepare changes in ndr code metze (This used to be commit 9ba00e7c167fb871a3d9acbd9fc5ce4e935d92c2) --- source3/smbd/notify_internal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/smbd/notify_internal.c') 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); } -- cgit