From 9ba00e7c167fb871a3d9acbd9fc5ce4e935d92c2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 9 Nov 2007 21:20:46 +0100 Subject: [PATCH] prepare changes in ndr code metze --- source/smbd/notify_internal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/smbd/notify_internal.c b/source/smbd/notify_internal.c index 48ca572a25f..2a2afe376bf 100644 --- 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); } -- 2.11.4.GIT