From 6fbd44c77a4512375fab9197e0a03af08d01b57c Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 7 Mar 2002 04:22:16 +0000 Subject: Fixed a bunch of crash bugs for enumprinters at various info levels. (This used to be commit d9df00e2b1764619491900b7dbd7d5af34feed1b) --- source3/rpcclient/display_sec.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/rpcclient/display_sec.c') diff --git a/source3/rpcclient/display_sec.c b/source3/rpcclient/display_sec.c index 9d54fe2235..37043c5012 100644 --- a/source3/rpcclient/display_sec.c +++ b/source3/rpcclient/display_sec.c @@ -122,22 +122,22 @@ void display_sec_desc(SEC_DESC *sec) { fstring sid_str; - if (sec->off_sacl != 0) { - printf("S-ACL\n"); + if (sec->sacl) { + printf("SACL\n"); display_sec_acl(sec->sacl); } - if (sec->off_dacl != 0) { - printf("D-ACL\n"); + if (sec->dacl) { + printf("DACL\n"); display_sec_acl(sec->dacl); } - if (sec->off_owner_sid != 0) { + if (sec->owner_sid) { sid_to_string(sid_str, sec->owner_sid); printf("\tOwner SID:\t%s\n", sid_str); } - if (sec->off_grp_sid != 0) { + if (sec->grp_sid) { sid_to_string(sid_str, sec->grp_sid); printf("\tParent SID:\t%s\n", sid_str); } -- cgit