From a01f9e3fc0b688d66e29fb0627bd780ecfeec5fa Mon Sep 17 00:00:00 2001 From: metze Date: Fri, 2 Nov 2007 10:49:51 +0000 Subject: 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) --- source3/librpc/ndr/ndr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3') 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); -- cgit