s4-libnet: Fix continue_groupinfo_opengroup to check correct state info
authorAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 03:48:49 +0000 (13:48 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 04:12:09 +0000 (06:12 +0200)
This meant that we would attempt to query the group that we could not open.

Andrew Bartlett

source4/libnet/groupinfo.c

index 44c21eed3fb82c9aa2b2790288dc63bad8306bc4..932ab0ca9a737c6987e83cb03488e06ca4df719a 100644 (file)
@@ -131,8 +131,8 @@ static void continue_groupinfo_opengroup(struct tevent_req *subreq)
        TALLOC_FREE(subreq);
        if (!composite_is_ok(c)) return;
 
-       if (!NT_STATUS_IS_OK(s->querygroupinfo.out.result)) {
-               composite_error(c, s->querygroupinfo.out.result);
+       if (!NT_STATUS_IS_OK(s->opengroup.out.result)) {
+               composite_error(c, s->opengroup.out.result);
                return;
        }