r25796: use NT_STATUS_HAVE_NO_MEMORY()
authorStefan Metzmacher <metze@samba.org>
Fri, 2 Nov 2007 09:49:51 +0000 (10:49 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:44:02 +0000 (05:44 +0100)
metze
(This used to be commit 43ef3d9dac5db1865b863c8c4a24c39167e7d2bc)

source4/librpc/ndr/ndr.c

index e16f179b929ac19084d8ae75071f2cbaf57f9e64..844d34e8c0d8eec6d360b78d1ed756135cf7011d 100644 (file)
@@ -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);