diff --git a/qrexec/qrexec-agent.c b/qrexec/qrexec-agent.c index c29329e..09db699 100644 --- a/qrexec/qrexec-agent.c +++ b/qrexec/qrexec-agent.c @@ -427,6 +427,8 @@ void handle_terminated_fork_client(fd_set *rdset) { release_connection(i); } else { fprintf(stderr, "Unexpected read on fork-server connection: %d(%s)\n", ret, strerror(errno)); + close(connection_info[i].fd); + release_connection(i); } } }