mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Protect against a closed socket
(This used to be commit d6cb5fdafbddb08d32b788674eff509cae9525c6)
This commit is contained in:
parent
f912ac962a
commit
60255c3b2e
@ -382,6 +382,11 @@ bool cli_chain_cork(struct cli_state *cli, struct event_context *ev,
|
||||
|
||||
SMB_ASSERT(cli->chain_accumulator == NULL);
|
||||
|
||||
if (cli->fd == -1) {
|
||||
DEBUG(10, ("cli->fd closed\n"));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (cli->fd_event == NULL) {
|
||||
SMB_ASSERT(cli->outstanding_requests == NULL);
|
||||
cli->fd_event = event_add_fd(ev, cli, cli->fd,
|
||||
|
Loading…
x
Reference in New Issue
Block a user