From 7c99297ea1c090c8c3ecd9c9669a36dab0bfdc36 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 12 Mar 2001 16:43:01 +0000 Subject: Looks like AS/U doesn't set the FIRST flag in a BIND packet. Jeremy. (This used to be commit a8df5e04b5bc22aa4324e3b1b5dd78bf0e1c566f) --- source3/rpc_server/srv_pipe_hnd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index 8846761316..3049c3adb9 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -327,7 +327,11 @@ static ssize_t unmarshall_rpc_header(pipes_struct *p) if(prs_offset(&p->in_data.data) == 0) { - if (!(p->hdr.flags & RPC_FLG_FIRST)) { + /* + * AS/U doesn't set FIRST flag in a BIND packet it seems. + */ + + if ((p->hdr.pkt_type == RPC_REQUEST) && !(p->hdr.flags & RPC_FLG_FIRST)) { /* * Ensure that the FIRST flag is set. If not then we have * a stream missmatch. -- cgit