From dd41357fcd057a5ec347f7ec0bf2ea7d4271be5e Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 9 Nov 2023 18:45:57 +1300 Subject: [PATCH] libcl/security:sddl_decode_acl: add a message Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- libcli/security/sddl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcli/security/sddl.c b/libcli/security/sddl.c index 96d76a5993b..70bf6d07f75 100644 --- a/libcli/security/sddl.c +++ b/libcli/security/sddl.c @@ -813,6 +813,8 @@ static struct security_acl *sddl_decode_acl(struct security_descriptor *sd, /* work out the ACL flags */ if (!sddl_map_flags(acl_flags, sddl, flags, &len, true)) { + *msg = talloc_strdup(sd, "bad ACL flags"); + *msg_offset = 0; talloc_free(acl); return NULL; } -- 2.47.3