git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r25797: use error and out logic
[ira/wip.git]
/
source4
/
librpc
/
ndr
/
ndr.c
diff --git
a/source4/librpc/ndr/ndr.c
b/source4/librpc/ndr/ndr.c
index 844d34e8c0d8eec6d360b78d1ed756135cf7011d..71d1e6c8e9666052cfbdeb997f10bc2bb9a1d0b1 100644
(file)
--- a/
source4/librpc/ndr/ndr.c
+++ b/
source4/librpc/ndr/ndr.c
@@
-606,9
+606,13
@@
_PUBLIC_ uint32_t ndr_token_peek(struct ndr_token_list **list, const void *key)
{
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;
}
/*