diff options
author | metze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818> | 2007-11-02 10:49:51 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-11-07 12:11:34 +0100 |
commit | a01f9e3fc0b688d66e29fb0627bd780ecfeec5fa (patch) | |
tree | c6f1278acce4a583586614883637d3aaf506dbe2 /source3/librpc/ndr | |
parent | a0f59767f4f4ccf4653a7a377c95b5a93bb02efb (diff) | |
download | samba-a01f9e3fc0b688d66e29fb0627bd780ecfeec5fa.tar.gz samba-a01f9e3fc0b688d66e29fb0627bd780ecfeec5fa.tar.bz2 samba-a01f9e3fc0b688d66e29fb0627bd780ecfeec5fa.zip |
use NT_STATUS_HAVE_NO_MEMORY()
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25796 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit be1f2f1abf15b34f8ab08d9e63637962fa762853)
Diffstat (limited to 'source3/librpc/ndr')
-rw-r--r-- | source3/librpc/ndr/ndr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/librpc/ndr/ndr.c b/source3/librpc/ndr/ndr.c index 0f86b0c0ab..797ba40612 100644 --- a/source3/librpc/ndr/ndr.c +++ b/source3/librpc/ndr/ndr.c @@ -526,9 +526,7 @@ NTSTATUS ndr_token_store(TALLOC_CTX *mem_ctx, { struct ndr_token_list *tok; tok = talloc(mem_ctx, struct ndr_token_list); - if (tok == NULL) { - return NT_STATUS_NO_MEMORY; - } + NT_STATUS_HAVE_NO_MEMORY(tok); tok->key = key; tok->value = value; DLIST_ADD((*list), tok); |