From 8fe499f7752ec2d7f2c1bd71e73077b1f1675125 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 14 Oct 1997 18:37:55 +0000 Subject: 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) --- source3/pipentlsa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/pipentlsa.c') 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); -- cgit