From: Douglas Bagnall Date: Thu, 9 Nov 2023 05:45:57 +0000 (+1300) Subject: libcl/security:sddl_decode_acl: add a message X-Git-Tag: talloc-2.4.2~698 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd41357fcd057a5ec347f7ec0bf2ea7d4271be5e;p=thirdparty%2Fsamba.git libcl/security:sddl_decode_acl: add a message Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- 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; }