Looks like AS/U doesn't set the FIRST flag in a BIND packet.
authorJeremy Allison <jra@samba.org>
Mon, 12 Mar 2001 16:43:01 +0000 (16:43 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 12 Mar 2001 16:43:01 +0000 (16:43 +0000)
Jeremy.
(This used to be commit a8df5e04b5bc22aa4324e3b1b5dd78bf0e1c566f)

source3/rpc_server/srv_pipe_hnd.c

index 8846761316e237961643ade9f1e56ec4350517f4..3049c3adb9ba6b6369d3d9471caeee8040da706d 100644 (file)
@@ -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.