summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-02-29 21:39:54 +0000
committerJeremy Allison <jra@samba.org>2000-02-29 21:39:54 +0000
commit4fb014372e7bcf1b40396841f162a14cb58a086a (patch)
treed6e06397f742970c09205bcd52bc4a49e18178b2 /source3/rpc_parse
parentf429162313c199b2b1466f25830c3241aa81f2b4 (diff)
downloadsamba-4fb014372e7bcf1b40396841f162a14cb58a086a.tar.gz
samba-4fb014372e7bcf1b40396841f162a14cb58a086a.tar.bz2
samba-4fb014372e7bcf1b40396841f162a14cb58a086a.zip
Fixes from Luke, back-ported from TNG to Win2k. Correctly return FAULT_PDU on
unknown rpc calls. Win2k now correctly shows the owners of files. Jeremy. (This used to be commit 066898689f496dc655c3f0a553ac5e884e078022)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_rpc.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_rpc.c b/source3/rpc_parse/parse_rpc.c
index 54d3eea74d..48d64972bf 100644
--- a/source3/rpc_parse/parse_rpc.c
+++ b/source3/rpc_parse/parse_rpc.c
@@ -494,6 +494,26 @@ BOOL smb_io_rpc_hdr_resp(char *desc, RPC_HDR_RESP *rpc, prs_struct *ps, int dept
}
/*******************************************************************
+ Reads or writes an RPC_HDR_FAULT structure.
+********************************************************************/
+
+BOOL smb_io_rpc_hdr_fault(char *desc, RPC_HDR_FAULT *rpc, prs_struct *ps, int depth)
+{
+ if (rpc == NULL)
+ return False;
+
+ prs_debug(ps, depth, desc, "smb_io_rpc_hdr_fault");
+ depth++;
+
+ if(!prs_uint32("status ", ps, depth, &rpc->status))
+ return False;
+ if(!prs_uint32("reserved", ps, depth, &rpc->reserved))
+ return False;
+
+ return True;
+}
+
+/*******************************************************************
Init an RPC_HDR_AUTHA structure.
********************************************************************/