diff options
author | metze <metze@samba.org> | 2007-11-02 10:59:43 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-11-07 12:13:09 +0100 |
commit | aef317ea57e71cbfb170bcd5c375047c6b117e03 (patch) | |
tree | 7d3bf078be59f967073e1e5299b47a342f74ec45 /source3 | |
parent | a01f9e3fc0b688d66e29fb0627bd780ecfeec5fa (diff) | |
download | samba-aef317ea57e71cbfb170bcd5c375047c6b117e03.tar.gz samba-aef317ea57e71cbfb170bcd5c375047c6b117e03.tar.bz2 samba-aef317ea57e71cbfb170bcd5c375047c6b117e03.zip |
use error and out logic
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25797 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 55d01b3f5b55cab3228270c0f6c164f11b0803f5)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/librpc/ndr/ndr.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/librpc/ndr/ndr.c b/source3/librpc/ndr/ndr.c index 797ba40612..8900e7a84f 100644 --- a/source3/librpc/ndr/ndr.c +++ b/source3/librpc/ndr/ndr.c @@ -569,9 +569,13 @@ 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; + + status = ndr_token_retrieve_cmp_fn(list, key, &v, NULL, false); + if (!NT_STATUS_IS_OK(status)) { + return 0; + } + + return v; } /* |