mirror of
https://github.com/clearml/dropbear
synced 2025-03-04 02:57:46 +00:00
Fix a stupid bug s/readfd/errfd/ affecting channel close on child exit
--HG-- extra : convert_revision : 16dd04147563e91faaa44de193dece0f4056ec7a
This commit is contained in:
parent
7aefd496f1
commit
62d792fbdc
@ -296,7 +296,7 @@ static void check_close(struct Channel *channel) {
|
|||||||
TRACE(("send data readfd"))
|
TRACE(("send data readfd"))
|
||||||
send_msg_channel_data(channel, 0);
|
send_msg_channel_data(channel, 0);
|
||||||
}
|
}
|
||||||
if (ERRFD_IS_READ(channel) && channel->readfd >= 0
|
if (ERRFD_IS_READ(channel) && channel->errfd >= 0
|
||||||
&& channel->transwindow > 0) {
|
&& channel->transwindow > 0) {
|
||||||
TRACE(("send data errfd"))
|
TRACE(("send data errfd"))
|
||||||
send_msg_channel_data(channel, 1);
|
send_msg_channel_data(channel, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user