summaryrefslogtreecommitdiff
path: root/source3/pipentlsa.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-14 18:37:55 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-14 18:37:55 +0000
commit8fe499f7752ec2d7f2c1bd71e73077b1f1675125 (patch)
tree416915b01a199a8960303b8bbeee8232959ba065 /source3/pipentlsa.c
parent6084046eede3652d7cabafb33227e940f00f92a8 (diff)
downloadsamba-8fe499f7752ec2d7f2c1bd71e73077b1f1675125.tar.gz
samba-8fe499f7752ec2d7f2c1bd71e73077b1f1675125.tar.bz2
samba-8fe499f7752ec2d7f2c1bd71e73077b1f1675125.zip
byteorder.h:
created a RW_PIVAL macro which was missing. smbparse.c: smb_io_dom_sid() was storing its sub-authorities as uint16s instead of uint32s. used the DBG_RW_PIVAL macro instead of DBG_RW_PSVAL. pipentlsa.c: not sure. something to do with the Query Info reply. pipeutil.c: make_rpc_reply() had the packed representation field set to 0x0100 0000 instead of 0x1000 0000, which had the interesting result of turning all uint32 and uint16 field byte ordering the other way round! (This used to be commit eafd6e9e797c5badb07059d7eddabd6a8947c830)
Diffstat (limited to 'source3/pipentlsa.c')
-rw-r--r--source3/pipentlsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/pipentlsa.c b/source3/pipentlsa.c
index 9a57b6df9b..030e00e87a 100644
--- a/source3/pipentlsa.c
+++ b/source3/pipentlsa.c
@@ -61,8 +61,8 @@ static void make_dom_query(DOM_QUERY *d_q, char *dom_name, char *dom_sid)
d_q->uni_dom_max_len = domlen * 2;
d_q->uni_dom_str_len = domlen * 2;
- d_q->buffer_dom_name = 1; /* domain buffer pointer */
- d_q->buffer_dom_sid = 1; /* domain sid pointer */
+ d_q->buffer_dom_name = 4; /* domain buffer pointer */
+ d_q->buffer_dom_sid = 2; /* domain sid pointer */
/* this string is supposed to be character short */
make_unistr2(&(d_q->uni_domain_name), dom_name, domlen);
@@ -77,7 +77,7 @@ static int lsa_reply_query_info(LSA_Q_QUERY_INFO *q_q, char *q, char *base,
/* set up the LSA QUERY INFO response */
- r_q.undoc_buffer = 1; /* not null */
+ r_q.undoc_buffer = 0x22000000; /* bizarre */
r_q.info_class = q_q->info_class;
make_dom_query(&r_q.dom.id5, dom_name, dom_sid);