diff --git a/source/rpc_server/common/common.h b/source/rpc_server/common/common.h index a1d3836ed0a..a45f183ca69 100644 --- a/source/rpc_server/common/common.h +++ b/source/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)