svn commit: samba r2953 - in branches/SAMBA_4_0/source/rpc_server/common: .

metze at samba.org metze at samba.org
Wed Oct 13 15:04:51 GMT 2004


Author: metze
Date: 2004-10-13 15:04:51 +0000 (Wed, 13 Oct 2004)
New Revision: 2953

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/rpc_server/common&rev=2953&nolog=1

Log:
add NTSTATUS_TALLOC_CHECK(x)

metze

Modified:
   branches/SAMBA_4_0/source/rpc_server/common/common.h


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/common/common.h
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/common/common.h	2004-10-13 14:25:44 UTC (rev 2952)
+++ branches/SAMBA_4_0/source/rpc_server/common/common.h	2004-10-13 15:04:51 UTC (rev 2953)
@@ -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)



More information about the samba-cvs mailing list