svn commit: samba r9933 - in branches/tmp/RPCREWRITE/source/rpc_client: .

jra at samba.org jra at samba.org
Thu Sep 1 23:50:33 GMT 2005


Author: jra
Date: 2005-09-01 23:50:33 +0000 (Thu, 01 Sep 2005)
New Revision: 9933

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

Log:
Returning no data isn't neccessarily an error.
Jeremy.

Modified:
   branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c


Changeset:
Modified: branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c
===================================================================
--- branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c	2005-09-01 23:49:42 UTC (rev 9932)
+++ branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c	2005-09-01 23:50:33 UTC (rev 9933)
@@ -779,13 +779,14 @@
 	SAFE_FREE(rparam);
 
 	if (prdata == NULL) {
-		DEBUG(0,("rpc_api_pipe: Remote machine %s pipe %s "
+		DEBUG(3,("rpc_api_pipe: Remote machine %s pipe %s "
 			"fnum 0x%x failed to return data.\n",
 			cli->cli->desthost,
 			cli_get_pipe_name(cli->pipe_idx),
 			(unsigned int)cli->fnum));
-		ret = NT_STATUS_INVALID_PARAMETER;
-		goto err;
+		/* Yes - some calls can truely return no data... */
+		prs_mem_free(&current_pdu);
+		return NT_STATUS_OK;
 	}
 
 	/*



More information about the samba-cvs mailing list