mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +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
|
||||
&& channel->readfd == FD_CLOSED
|
||||
&& (channel->extrabuf == NULL || channel->errfd == FD_CLOSED)) {
|
||||
&& (channel->extrabuf != NULL || channel->errfd == FD_CLOSED)) {
|
||||
send_msg_channel_eof(channel);
|
||||
}
|
||||
|
||||
if (!channel->sentclosed
|
||||
&& channel->writefd == 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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user