svn commit: samba r20323 - in branches/SAMBA_4_0/source/librpc/rpc: .

metze at samba.org metze at samba.org
Fri Dec 22 18:22:40 GMT 2006


Author: metze
Date: 2006-12-22 18:22:40 +0000 (Fri, 22 Dec 2006)
New Revision: 20323

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20323

Log:
allow empty dcerpc reqeusts, this fixes the RPC-COUNTCALLS test

metze
Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c	2006-12-22 17:40:34 UTC (rev 20322)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c	2006-12-22 18:22:40 UTC (rev 20323)
@@ -939,7 +939,7 @@
 	req->opnum = opnum;
 	req->request_data.length = stub_data->length;
 	req->request_data.data = talloc_reference(req, stub_data->data);
-	if (req->request_data.data == NULL) {
+	if (req->request_data.length && req->request_data.data == NULL) {
 		return NULL;
 	}
 



More information about the samba-cvs mailing list