summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-10-13 15:04:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:51 -0500
commit707661a87ebf92362df9c3adfe87a94b8e60ec35 (patch)
tree75b854df00b51f35dce600d3742e66d8519ce9b7 /source4/rpc_server
parent78e29c0491a36285ed1c09a684a9fc516aec4beb (diff)
downloadsamba-707661a87ebf92362df9c3adfe87a94b8e60ec35.tar.gz
samba-707661a87ebf92362df9c3adfe87a94b8e60ec35.tar.bz2
samba-707661a87ebf92362df9c3adfe87a94b8e60ec35.zip
r2953: add NTSTATUS_TALLOC_CHECK(x)
metze (This used to be commit a2cc9517208adedbcbed4b01d18a1478f75d70df)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/common/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/rpc_server/common/common.h b/source4/rpc_server/common/common.h
index a1d3836ed0..a45f183ca6 100644
--- a/source4/rpc_server/common/common.h
+++ b/source4/rpc_server/common/common.h
@@ -21,6 +21,10 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#define NTSTATUS_TALLOC_CHECK(x) do {\
+ if (!(x)) return NT_STATUS_NO_MEMORY;\
+} while (0)
+
#define WERR_TALLOC_CHECK(x) do {\
if (!(x)) return WERR_NOMEM;\
} while (0)