summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)