s4-libnet: Fix continue_groupinfo_openuser to check correct state info
authorAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 07:16:05 +0000 (17:16 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 10:48:02 +0000 (20:48 +1000)
This meant that we would attempt to query the user that we could not open.

This is a mirror of 4ba1647d5db59e5bb4911c399111e9286aac1a8e.

Andrew Bartlett

source4/libnet/userinfo.c

index 77a88ecec4a53cfdffc12aa350c62c3f6ced5a36..d485eecf5b4856d46d04931b6b1a3d89d3985c50 100644 (file)
@@ -130,8 +130,8 @@ static void continue_userinfo_openuser(struct tevent_req *subreq)
        TALLOC_FREE(subreq);
        if (!composite_is_ok(c)) return;
 
-       if (!NT_STATUS_IS_OK(s->queryuserinfo.out.result)) {
-               composite_error(c, s->queryuserinfo.out.result);
+       if (!NT_STATUS_IS_OK(s->openuser.out.result)) {
+               composite_error(c, s->openuser.out.result);
                return;
        }