summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-02 10:49:51 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:44:02 +0100
commit08994d44829ef540f6b77b56877b3230d0a7b74f (patch)
tree10024dbc1606a81e0f20b61120f6cced587a2fd2 /source4
parentbd05c0c3fae3a86cb0f8fa33044a8fdb4f5bd992 (diff)
downloadsamba-08994d44829ef540f6b77b56877b3230d0a7b74f.tar.gz
samba-08994d44829ef540f6b77b56877b3230d0a7b74f.tar.bz2
samba-08994d44829ef540f6b77b56877b3230d0a7b74f.zip
r25796: use NT_STATUS_HAVE_NO_MEMORY()
metze (This used to be commit 43ef3d9dac5db1865b863c8c4a24c39167e7d2bc)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/ndr/ndr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c
index e16f179b92..844d34e8c0 100644
--- a/source4/librpc/ndr/ndr.c
+++ b/source4/librpc/ndr/ndr.c
@@ -563,9 +563,7 @@ _PUBLIC_ 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);