1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

messaging: Disable the correct fde on error

We might be called from different event contexts and thus
via different fde's

Signed-off-by: Volker Lendecke <vl@samba.org>
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2016-09-30 06:42:40 -07:00 committed by Jeremy Allison
parent 7099ba8770
commit 6c21d9977f

View File

@ -1026,7 +1026,7 @@ static void messaging_dgm_read_handler(struct tevent_context *ev,
return;
}
/* Problem with the socket. Set it unreadable. */
tevent_fd_set_flags(ctx->read_fde, 0);
tevent_fd_set_flags(fde, 0);
return;
}