Author: jelmer
Date: 2005-10-05 23:11:34 +0000 (Wed, 05 Oct 2005)
New Revision: 10747

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

Log:
Remove overparanoid check that broke RPC function calls with no 
[in] parameters.

Modified:
   branches/SAMBA_3_0/source/rpc_client/cli_pipe.c
   trunk/source/rpc_client/cli_pipe.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_client/cli_pipe.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_client/cli_pipe.c     2005-10-05 23:03:02 UTC 
(rev 10746)
+++ branches/SAMBA_3_0/source/rpc_client/cli_pipe.c     2005-10-05 23:11:34 UTC 
(rev 10747)
@@ -1467,11 +1467,6 @@
                return NT_STATUS_INVALID_PARAMETER;
        }
 
-       if (data_left == 0) {
-               /* Caller is screwed up ! */
-               return NT_STATUS_INVALID_PARAMETER;
-       }
-
        prs_init(&outgoing_pdu, cli->max_xmit_frag, 
prs_get_mem_context(in_data), MARSHALL);
 
        while (1) {

Modified: trunk/source/rpc_client/cli_pipe.c
===================================================================
--- trunk/source/rpc_client/cli_pipe.c  2005-10-05 23:03:02 UTC (rev 10746)
+++ trunk/source/rpc_client/cli_pipe.c  2005-10-05 23:11:34 UTC (rev 10747)
@@ -1467,11 +1467,6 @@
                return NT_STATUS_INVALID_PARAMETER;
        }
 
-       if (data_left == 0) {
-               /* Caller is screwed up ! */
-               return NT_STATUS_INVALID_PARAMETER;
-       }
-
        prs_init(&outgoing_pdu, cli->max_xmit_frag, 
prs_get_mem_context(in_data), MARSHALL);
 
        while (1) {

Reply via email to