svn commit: samba r25797 - in branches/SAMBA_4_0/source/librpc/ndr:
.
metze at samba.org
metze at samba.org
Fri Nov 2 10:59:43 GMT 2007
Author: metze
Date: 2007-11-02 10:59:43 +0000 (Fri, 02 Nov 2007)
New Revision: 25797
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25797
Log:
use error and out logic
metze
Modified:
branches/SAMBA_4_0/source/librpc/ndr/ndr.c
Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2007-11-02 10:49:51 UTC (rev 25796)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2007-11-02 10:59:43 UTC (rev 25797)
@@ -606,9 +606,13 @@
{
NTSTATUS status;
uint32_t v;
+
status = ndr_token_retrieve_cmp_fn(list, key, &v, NULL, false);
- if (NT_STATUS_IS_OK(status)) return v;
- return 0;
+ if (!NT_STATUS_IS_OK(status)) {
+ return 0;
+ }
+
+ return v;
}
/*
More information about the samba-cvs
mailing list