LSA_R_OPEN_POL r_o;
/* set up the LSA QUERY INFO response */
- /* bzero(&(r_o.pol.data), POL_HND_SIZE); */
- for (i = 0; i < POL_HND_SIZE; i++)
+ bzero(&(r_o.pol.data), POL_HND_SIZE);
+ for (i = 4; i < POL_HND_SIZE; i++)
{
r_o.pol.data[i] = i;
}
SIVAL(q, 0, 4); /* entries read */
SIVAL(q, 0, 8); /* trust information */
+ q += 12;
+
endrpcreply(data, *rdata, q-*rdata, 0x8000001a, rdata_len);
break;
case LSA_CLOSE:
{
- char *q = *rdata + 0x18;
+ char *q;
DEBUG(3,("LSA_CLOSE\n"));
initrpcreply(data, *rdata);
- SIVAL(q, 0, 0);
- SIVAL(q, 0, 4);
- SIVAL(q, 0, 8);
- SIVAL(q, 0, 12);
- SIVAL(q, 0, 16);
+ q = *rdata + 0x18;
+
+ SIVAL(q, 0, 0); q += 4;
+ SIVAL(q, 0, 0); q += 4;
+ SIVAL(q, 0, 0); q += 4;
+ SIVAL(q, 0, 0); q += 4;
+ SIVAL(q, 0, 0); q += 4;
endrpcreply(data, *rdata, q-*rdata, 0, rdata_len);
SIVAL(q, 0, 12);
SIVAL(q, 0, 16);
+ q += 20;
+
endrpcreply(data, *rdata, q-*rdata, 0xc000034, rdata_len);
break;
DEBUG(5,("%s%04x smb_io_dom_sid\n", tab_depth(depth), PTR_DIFF(q, base)));
depth++;
+ q = align_offset(q, base, align);
+
DBG_RW_IVAL("num_auths ", depth, base, io, q, sid->num_auths); q += 4;
DBG_RW_CVAL("sid_no ", depth, base, io, q, sid->sid_no); q++;
DBG_RW_CVAL("num_auths ", depth, base, io, q, sid->num_auths); q++;