s3: Fix wb_next_pwent_fill_done
authorVolker Lendecke <vl@samba.org>
Tue, 22 Nov 2011 16:37:07 +0000 (17:37 +0100)
committerVolker Lendecke <vlendec@samba.org>
Tue, 22 Nov 2011 18:17:30 +0000 (19:17 +0100)
Within a callback routine it is not possible to call tevent_req_post

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Nov 22 19:17:30 CET 2011 on sn-devel-104

source3/winbindd/wb_next_pwent.c

index a52a566e7bdf9983458825f42a8b81dd126f3cd2..d47b2fca912e1c58eb59e9459ec5423ddf4cd12b 100644 (file)
@@ -160,7 +160,6 @@ static void wb_next_pwent_fill_done(struct tevent_req *subreq)
                                            &state->gstate->users[state->gstate->next_user],
                                            state->pw);
                if (tevent_req_nomem(subreq, req)) {
-                       tevent_req_post(req, state->ev);
                        return;
                }
                tevent_req_set_callback(subreq, wb_next_pwent_fill_done, req);