From 13291ce01db2469db7c3f80f7e59ce3702170e7c Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Mon, 27 Oct 1997 17:04:15 +0000 Subject: added LSA Query Info Policy. fixed a problem with byte ordering (doing an SIVAL of the setup parameters which was _also_ being done in the creation of the SMB header. oops). (This used to be commit 541fb82895008cc30477019cdcafed9fdbbeac43) --- source3/lsaparse.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source3/lsaparse.c') diff --git a/source3/lsaparse.c b/source3/lsaparse.c index 37cc51bbf8..39ef6c596b 100644 --- a/source3/lsaparse.c +++ b/source3/lsaparse.c @@ -76,6 +76,20 @@ char* lsa_io_r_open_pol(BOOL io, LSA_R_OPEN_POL *r_p, char *q, char *base, int a return q; } +/******************************************************************* +makes an LSA_Q_QUERY_INFO structure. +********************************************************************/ +void make_q_query(LSA_Q_QUERY_INFO *q_q, LSA_POL_HND *hnd, uint16 info_class) +{ + if (q_q == NULL || hnd == NULL) return; + + DEBUG(5,("make_q_query\n")); + + memcpy(&(q_q->pol), hnd, sizeof(q_q->pol)); + + q_q->info_class = info_class; +} + /******************************************************************* reads or writes an LSA_Q_QUERY_INFO structure. ********************************************************************/ -- cgit