From dba738d04434782a009a5140d15bb8c487aff7b3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Dec 2006 18:22:40 +0000 Subject: r20323: allow empty dcerpc reqeusts, this fixes the RPC-COUNTCALLS test metze (This used to be commit bbd086f2edf81028f2370be8ce0739144cd64b02) --- source4/librpc/rpc/dcerpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/librpc/rpc') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 6245073a30..288f65e027 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -939,7 +939,7 @@ static struct rpc_request *dcerpc_request_send(struct dcerpc_pipe *p, 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; } -- cgit