1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r4886: fixed two places where we process the send side of a socket after the

recv side in the same event. That's a bad idea, as the first callback
could decide to destroy the socket.
This commit is contained in:
Andrew Tridgell 2005-01-21 06:55:33 +00:00 committed by Gerald (Jerry) Carter
parent ae7e625bfa
commit bf74ea34fc
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ static void smbcli_transport_event_handler(struct event_context *ev, struct fd_e
if (flags & EVENT_FD_READ) {
smbcli_transport_process_recv(transport);
return;
}
if (flags & EVENT_FD_WRITE) {
smbcli_transport_process_send(transport);

View File

@ -199,6 +199,7 @@ static void sock_io_handler(struct event_context *ev, struct fd_event *fde,
if (flags & EVENT_FD_WRITE) {
sock_process_send(p);
return;
}
if (sock->sock == NULL) {