Skip to content

Commit

Permalink
libcli/security: Check for sddl_from_conditional_ace() failure in tes…
Browse files Browse the repository at this point in the history
…t_sddl_conditional_ace

Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-by: Douglas Bagnall <[email protected]>
  • Loading branch information
abartlet committed Sep 26, 2023
1 parent 03d63fb commit ab531ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libcli/security/tests/test_sddl_conditional_ace.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,17 @@ static void test_round_trips(void **state)
}

resddl1 = sddl_from_conditional_ace(mem_ctx, s1);
if (resddl1 == NULL) {
failed = true;
debug_fail("could not re-make SDDL of %s\n", sddl[i]);
continue;
}
resddl2 = sddl_from_conditional_ace(mem_ctx, s2);
if (resddl2 == NULL) {
failed = true;
debug_fail("could not re-make SDDL of %s\n", sddl[i]);
continue;
}
if (strcmp(resddl1, resddl2) != 0) {
print_message("SDDL 2: %s\n", resddl2);
failed = failed || ok;
Expand Down

0 comments on commit ab531ab

Please sign in to comment.