diff options
Diffstat (limited to 'libcli/security/display_sec.c')
-rw-r--r-- | libcli/security/display_sec.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libcli/security/display_sec.c b/libcli/security/display_sec.c index bec657da86..6a820673b6 100644 --- a/libcli/security/display_sec.c +++ b/libcli/security/display_sec.c @@ -159,15 +159,20 @@ void display_sec_ace_flags(uint8_t flags) ****************************************************************************/ static void disp_sec_ace_object(struct security_ace_object *object) { + char *str; if (object->flags & SEC_ACE_OBJECT_TYPE_PRESENT) { + str = GUID_string(NULL, &object->type.type); + if (str == NULL) return; printf("Object type: SEC_ACE_OBJECT_TYPE_PRESENT\n"); - printf("Object GUID: %s\n", GUID_string(talloc_tos(), - &object->type.type)); + printf("Object GUID: %s\n", str); + talloc_free(str); } if (object->flags & SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT) { + str = GUID_string(NULL, &object->inherited_type.inherited_type); + if (str == NULL) return; printf("Object type: SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT\n"); - printf("Object GUID: %s\n", GUID_string(talloc_tos(), - &object->inherited_type.inherited_type)); + printf("Object GUID: %s\n", str); + talloc_free(str); } } |