Previous bug fix reversed the sense of the test for out of memory.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10280
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
have_mapped = have_unmapped = false;
*names = talloc_array(mem_ctx, char *, num_rids);
- if (*names != NULL) {
+ if (*names == NULL) {
result = NT_STATUS_NO_MEMORY;
goto error;
}
*types = talloc_array(mem_ctx, enum lsa_SidType,
num_rids);
- if (*types != NULL) {
+ if (*types == NULL) {
result = NT_STATUS_NO_MEMORY;
goto error;
}