diff options
author | Luke Leighton <lkcl@samba.org> | 1998-11-11 19:22:08 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-11-11 19:22:08 +0000 |
commit | 60a91a1dca12e675e4498062f33ed773ddd5600a (patch) | |
tree | 7b828ffbd2c92b29f88238d1f43cce0b5b493953 /source3/rpc_client | |
parent | 16a243ec5efe0fed8a6934442e87f57c635e4703 (diff) | |
download | samba-60a91a1dca12e675e4498062f33ed773ddd5600a.tar.gz samba-60a91a1dca12e675e4498062f33ed773ddd5600a.tar.bz2 samba-60a91a1dca12e675e4498062f33ed773ddd5600a.zip |
clearing up security descriptor
(This used to be commit abdc9d790b7d27b70aaf88451f5c82c99c94ca6e)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_reg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_reg.c b/source3/rpc_client/cli_reg.c index 27c1c8e760..69982a8d44 100644 --- a/source3/rpc_client/cli_reg.c +++ b/source3/rpc_client/cli_reg.c @@ -471,6 +471,10 @@ BOOL do_reg_get_key_sec(struct cli_state *cli, POLICY_HND *hnd, ZERO_STRUCT(r_o); r_o.data = sec_buf; + if (*sec_buf_size != 0) + { + sec_buf->sec = (SEC_DESC*)malloc(*sec_buf_size); + } reg_io_r_get_key_sec("", &r_o, &rbuf, 0); p = rbuf.offset != 0; |