- print the received security_descriptor in the smbclient "acl" command
- make sure we zero the alignment data in nttrans packet sends
(This used to be commit
8925b8b2193905d084e1bfaaa3235ed7f9d1eb55)
goto done;
}
+ NDR_PRINT_DEBUG(security_descriptor, query.out.sd);
+
talloc_destroy(mem_ctx);
done:
return NT_STATUS_INVALID_PARAMETER;
}
- query->out.sd = talloc(mem_ctx, sizeof(query->out.sd));
+ query->out.sd = talloc_p(mem_ctx, struct security_descriptor);
if (!query->out.sd) {
return NT_STATUS_NO_MEMORY;
}
outparam = req->out.data + align;
outdata = outparam + parms->in.params.length;
+ if (align != 0) {
+ memset(req->out.data, 0, align);
+ }
+
SCVAL(req->out.vwv, 0, parms->in.max_setup);
SSVAL(req->out.vwv, 1, 0); /* reserved */
SIVAL(req->out.vwv, 3, parms->in.params.length);