summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-06-11 16:37:46 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-06-11 16:37:46 +0000
commit4313157666e6185de9e8f30cac109b8b7a760a45 (patch)
tree3ecf4d63afb0af95dcb4e6a6b7f8588d3630d5d5
parente8fa3ce478681a356d2882e29550a6a63fed7b31 (diff)
fix accidentally changed == vs != operators
--HG-- extra : convert_revision : a2345a9e53fcb35bde9f3701406e285c1ef80481
-rw-r--r--common-channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common-channel.c b/common-channel.c
index 0cd6ef8..11760ec 100644
--- a/common-channel.c
+++ b/common-channel.c
@@ -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);
}