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:
parent
ae7e625bfa
commit
bf74ea34fc
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user