Mercurial > dropbear
comparison common-channel.c @ 332:6f90e5fd42cc
fix accidentally changed == vs != operators
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 11 Jun 2006 16:37:46 +0000 |
parents | d6b8815a9b5e |
children | 78518751cb82 59c7938af2bd |
comparison
equal
deleted
inserted
replaced
331:d6b8815a9b5e | 332:6f90e5fd42cc |
---|---|
271 } | 271 } |
272 } | 272 } |
273 | 273 |
274 if (!channel->senteof | 274 if (!channel->senteof |
275 && channel->readfd == FD_CLOSED | 275 && channel->readfd == FD_CLOSED |
276 && (channel->extrabuf == NULL || channel->errfd == FD_CLOSED)) { | 276 && (channel->extrabuf != NULL || channel->errfd == FD_CLOSED)) { |
277 send_msg_channel_eof(channel); | 277 send_msg_channel_eof(channel); |
278 } | 278 } |
279 | 279 |
280 if (!channel->sentclosed | 280 if (!channel->sentclosed |
281 && channel->writefd == FD_CLOSED | 281 && channel->writefd == FD_CLOSED |
282 && channel->readfd == FD_CLOSED | 282 && channel->readfd == FD_CLOSED |
283 && (channel->extrabuf == NULL || channel->errfd == FD_CLOSED)) { | 283 && (channel->extrabuf != NULL || channel->errfd == FD_CLOSED)) { |
284 send_msg_channel_close(channel); | 284 send_msg_channel_close(channel); |
285 } | 285 } |
286 | 286 |
287 /* When either party wishes to terminate the channel, it sends | 287 /* When either party wishes to terminate the channel, it sends |
288 * SSH_MSG_CHANNEL_CLOSE. Upon receiving this message, a party MUST | 288 * SSH_MSG_CHANNEL_CLOSE. Upon receiving this message, a party MUST |