1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

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 commit is contained in:
metze 2007-11-02 10:59:43 +00:00 committed by Stefan Metzmacher
parent be1f2f1abf
commit 55d01b3f5b

View File

@ -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;
}
/*