mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
librpc: Fix error path cleanups in start_rpc_host_send()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
273d48504e
commit
74e121f93b
@ -403,11 +403,11 @@ static struct tevent_req *start_rpc_host_send(
|
|||||||
return req;
|
return req;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (ready_fds[0] == -1) {
|
if (ready_fds[0] != -1) {
|
||||||
close(ready_fds[0]);
|
close(ready_fds[0]);
|
||||||
ready_fds[0] = -1;
|
ready_fds[0] = -1;
|
||||||
}
|
}
|
||||||
if (ready_fds[1] == -1) {
|
if (ready_fds[1] != -1) {
|
||||||
close(ready_fds[1]);
|
close(ready_fds[1]);
|
||||||
ready_fds[1] = -1;
|
ready_fds[1] = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user