mirror of
https://github.com/clearml/dropbear
synced 2025-05-18 10:21:32 +00:00
fix accidentally changed == vs != operators
--HG-- extra : convert_revision : a2345a9e53fcb35bde9f3701406e285c1ef80481
This commit is contained in:
parent
e8fa3ce478
commit
4313157666
@ -273,14 +273,14 @@ static void checkclose(struct Channel *channel) {
|
|||||||
|
|
||||||
if (!channel->senteof
|
if (!channel->senteof
|
||||||
&& channel->readfd == FD_CLOSED
|
&& channel->readfd == FD_CLOSED
|
||||||
&& (channel->extrabuf == NULL || channel->errfd == FD_CLOSED)) {
|
&& (channel->extrabuf != NULL || channel->errfd == FD_CLOSED)) {
|
||||||
send_msg_channel_eof(channel);
|
send_msg_channel_eof(channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!channel->sentclosed
|
if (!channel->sentclosed
|
||||||
&& channel->writefd == FD_CLOSED
|
&& channel->writefd == FD_CLOSED
|
||||||
&& channel->readfd == FD_CLOSED
|
&& channel->readfd == FD_CLOSED
|
||||||
&& (channel->extrabuf == NULL || channel->errfd == FD_CLOSED)) {
|
&& (channel->extrabuf != NULL || channel->errfd == FD_CLOSED)) {
|
||||||
send_msg_channel_close(channel);
|
send_msg_channel_close(channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user