Skip to content

Commit

Permalink
winbind: Fix --ping-dc error handling
Browse files Browse the repository at this point in the history
If the child dies at the wrong moment, we get an error in the "req" itself.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13309

Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>

Autobuild-User(master): Andreas Schneider <[email protected]>
Autobuild-Date(master): Thu Mar  1 14:48:19 CET 2018 on sn-devel-144
  • Loading branch information
vlendec authored and cryptomilk committed Mar 1, 2018
1 parent 49adb5a commit c380626
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source3/winbindd/winbindd_ping_dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ NTSTATUS winbindd_ping_dc_recv(struct tevent_req *req,
{
struct winbindd_ping_dc_state *state = tevent_req_data(
req, struct winbindd_ping_dc_state);
NTSTATUS status;

if (tevent_req_is_nterror(req, &status)) {
return status;
}

if (!NT_STATUS_IS_OK(state->result)) {
set_auth_errors(presp, state->result);
Expand Down

0 comments on commit c380626

Please sign in to comment.