summaryrefslogtreecommitdiff
path: root/source/rpcclient/display.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-08-03 20:30:25 +0000
committerLuke Leighton <lkcl@samba.org>1999-08-03 20:30:25 +0000
commitb2d9cbef6f65bb696df8d8f49aa0c240e0bb1f50 (patch)
treea4851d6aa1c85346f92c13ff15a3c29170b2c101 /source/rpcclient/display.c
parent062b9302c1c7a21df74571ead5f89ce002820d53 (diff)
downloadsamba-b2d9cbef6f65bb696df8d8f49aa0c240e0bb1f50.tar.gz
reverted jeremy's c++-like security descriptor modifications as the
simplest method to get rpcclient's reggetsec command working. the buffers passed as arguments in do_reg_get_key_sec() do need to be locally allocated not dynamically allocated, as two calls to reg_get_key_sec() are needed. on the first, the server fills in the size of the security descriptor buffer needed. on the second, the server fills in the security descriptor buffer.
Diffstat (limited to 'source/rpcclient/display.c')
-rw-r--r--source/rpcclient/display.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/rpcclient/display.c b/source/rpcclient/display.c
index 545258b36a1..fd876c54328 100644
--- a/source/rpcclient/display.c
+++ b/source/rpcclient/display.c
@@ -1355,9 +1355,9 @@ void display_sec_acl(FILE *out_hnd, enum action_type action, SEC_ACL *sec_acl)
int i;
for (i = 0; i < sec_acl->num_aces; i++)
{
- display_sec_ace(out_hnd, ACTION_HEADER , &sec_acl->ace_list[i]);
- display_sec_ace(out_hnd, ACTION_ENUMERATE, &sec_acl->ace_list[i]);
- display_sec_ace(out_hnd, ACTION_FOOTER , &sec_acl->ace_list[i]);
+ display_sec_ace(out_hnd, ACTION_HEADER , &sec_acl->ace[i]);
+ display_sec_ace(out_hnd, ACTION_ENUMERATE, &sec_acl->ace[i]);
+ display_sec_ace(out_hnd, ACTION_FOOTER , &sec_acl->ace[i]);
}
}