Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
ACE_CONDITION_FLAG_ALLOW_DEVICE,
&msg,
&msg_offset);
- DBG_NOTICE("could not decode '%s'\n", sddl);
- if (msg != NULL) {
- DBG_NOTICE(" %*c\n", (int)msg_offset, '^');
- DBG_NOTICE("error '%s'\n", msg);
- talloc_free(discard_const(msg));
+ if (sd == NULL) {
+ DBG_NOTICE("could not decode '%s'\n", sddl);
+ if (msg != NULL) {
+ DBG_NOTICE(" %*c\n",
+ (int)msg_offset, '^');
+ DBG_NOTICE("error '%s'\n", msg);
+ talloc_free(discard_const(msg));
+ }
}
return sd;
}