diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-02-04 21:44:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:06:26 -0500 |
commit | da979c9e7eb0c03ac718eb2c6c50937e52c39292 (patch) | |
tree | e5102a3b4a444da0942e0e4e7c4d8277f18e72b9 /source3/rpc_parse | |
parent | 9ca890e414bddf093ef09f1219b5347cb3b16625 (diff) | |
download | samba-da979c9e7eb0c03ac718eb2c6c50937e52c39292.tar.gz samba-da979c9e7eb0c03ac718eb2c6c50937e52c39292.tar.bz2 samba-da979c9e7eb0c03ac718eb2c6c50937e52c39292.zip |
r13350: Implement rpccli_samr_set_domain_info. Weird that it was not around :-)
Implement 'net rpc shell account' -- An editor for account policies
nt_time_to_unix_abs changed its argument which to me seems wrong, and I could
not find a caller that depends on this. So I changed it. Applied some more
const in time.c.
Volker
(This used to be commit fc73690a7000d5a3f0f5ad34461c1f3a87edeac5)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_samr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 7cbaa4e3c9..87bfcebe26 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -7629,8 +7629,10 @@ BOOL samr_io_q_set_domain_info(const char *desc, SAMR_Q_SET_DOMAIN_INFO *q_u, if(!prs_align(ps)) return False; - if ((q_u->ctr = PRS_ALLOC_MEM(ps, SAM_UNK_CTR, 1)) == NULL) - return False; + if (UNMARSHALLING(ps)) { + if ((q_u->ctr = PRS_ALLOC_MEM(ps, SAM_UNK_CTR, 1)) == NULL) + return False; + } switch (q_u->switch_value) { |