summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-12 16:43:01 +0000
committerJeremy Allison <jra@samba.org>2001-03-12 16:43:01 +0000
commit7c99297ea1c090c8c3ecd9c9669a36dab0bfdc36 (patch)
treed787171ac7bd008bbaddb0809733d7ff3e04c5a9
parentb840dce67639b8d270eaac27b29d7392981f55bd (diff)
downloadsamba-7c99297ea1c090c8c3ecd9c9669a36dab0bfdc36.tar.gz
samba-7c99297ea1c090c8c3ecd9c9669a36dab0bfdc36.tar.bz2
samba-7c99297ea1c090c8c3ecd9c9669a36dab0bfdc36.zip
Looks like AS/U doesn't set the FIRST flag in a BIND packet.
Jeremy. (This used to be commit a8df5e04b5bc22aa4324e3b1b5dd78bf0e1c566f)
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c6
1 files changed, 5 insertions, 1 deletions
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.