Fix from Atte Peltomäki - atte.peltomaki@f-secure.com to correctly check
[metze/samba/wip.git] / source3 / winbindd / winbindd_group.c
index f9f946f3f3de4cef8a882788c83189d884c31691..20b90e3283dec05dabba834f997746a9625351c0 100644 (file)
@@ -442,7 +442,7 @@ static NTSTATUS expand_groups( TALLOC_CTX *ctx,
                                                                 &sid_mem[j],
                                                                 &new_groups,
                                                                 &new_groups_size);
-                               if (NT_STATUS_IS_OK(status)) {
+                               if (!NT_STATUS_IS_OK(status)) {
                                        goto out;
                                }